473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

HTML How do I pass parameters between pages

14
Heres what I'm trying to do.

THIS PIECE
<html>
<iframe src="small.html" frameborder="0" width="800" height="290">
</iframe>
</html>


OPENS Bigger.html Page 1 and has a text box for user input.

Input your message:
<input type="text" name="Part Number" value="11111" size="20">

THEN after user has typed something they hit a button
<input type="text" value="Submit" />

WHICH calls some.html
<form action="some.html" method="get">


SOME.HTML is generic and pops up.
How do I get the text that was entered in by the user from the Bigger.html

This is the NewGuy so any code would be great.
Thanks.
Nov 15 '06 #1
3 6233
Heres what I'm trying to do.

THIS PIECE
<html>
<iframe src="small.html" frameborder="0" width="800" height="290">
</iframe>
</html>


OPENS Bigger.html Page 1 and has a text box for user input.

Input your message:
<input type="text" name="Part Number" value="11111" size="20">

THEN after user has typed something they hit a button
<input type="text" value="Submit" />

WHICH calls some.html
<form action="some.html" method="get">


SOME.HTML is generic and pops up.
How do I get the text that was entered in by the user from the Bigger.html

This is the NewGuy so any code would be great.
Thanks.
1st: add an id to your textbox in Bigger.html

<input type="text" id="part" name="Part Number" value="11111" size="20">

2nd: in Some.html, get the value from your textbox like this:

alert(parent.document.getElementById("part").value);

** will work only if Bigger.html opens Some.html like a pop up
Nov 16 '06 #2
1st: add an id to your textbox in Bigger.html

<input type="text" id="part" name="Part Number" value="11111" size="20">

2nd: in Some.html, get the value from your textbox like this:

alert(parent.document.getElementById("part").value);

** will work only if Bigger.html opens Some.html like a pop up

***************************************
bigger.html
<input type=text name="a" >
some.html
string c=req.getParameter("a");//using servlets program in java
Nov 18 '06 #3
cassbiz
202 100+
You can also create your pages in PHP.

Check out this for a simple tutorial
Nov 20 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: David Stockwell | last post by:
Hi, In java/jsp I can pass parameters to my python script on a webpage by doing something like this: http://somewhere.org/mypage.jsp?parm1=something&parm2=another How do I do that with...
12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
27
by: Oscar | last post by:
I am looking for a way to pass an ADO recordset that has been retrieved in an ASP page to another HTML-page. Is there someone who can provide me with a small sample or a link to see how this is...
23
by: John | last post by:
Last year, I remember finding a web page describing how to pass the name of a file to another web page, and have that web page load that image file. Now, I can't find my record of that (it was...
7
by: Spongebob | last post by:
Hello, I have a question about how to pass information between pages in ASP.NET. There are 2 pages : page1.aspx, page2.aspx. On page1 user clicks the record. Then, I need to show the detailed...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
3
by: Sam | last post by:
Hi All, Is it possible to get a web page content of one of my webpages using relative path? for example: If I have a website which consists of 2 pages: testpage1.aspx and testpage2.aspx...
3
by: computer_guy | last post by:
Hi Everyone, I run into a problem. I am trying to write an aspx that can dynamically generate an image based on some input parameters. Things are very simple if the size of the parameters is...
3
by: Aussie Rules | last post by:
Hi, I have a few aspx (.net2) form. The first form allows the user to enter into text box, and select values from drop downs The second form needs to use these values to process some data....
42
by: Santander | last post by:
how to decode HTML pages encoded like this: http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm Is there script that will do this automatically and generate normal fully...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.