I'm sure this should be simple enough but I'm really struggling to get my mind around this. I don't have access to a server but am developing a site and I need to pass information from input boxes on one form to a paragraph of text on another.
The simplest example I could think of would be a first page with input boxes for Title and Surname:
[html]
<head>
<title>Test</title>
<table>
<tr>
<td>Title:</td>
<td><p>
<input name="Title" type="text" id="Title" size="20" maxlength="4">
</p> </td>
</tr>
<tr>
<td>Surname:</td>
<td><input name="Surname" type="Text" id="Surname" size="35" maxlength="50"> </td>
</tr>
<td><input name="Reset" type="Reset"
value="Clear Form" />
<a href="Test_Page 2.html">Next</a>
</body>
</html>
[/html]
and a second page which would then show the values in text.
[html]
<head>
<title>Untitl ed Document</title>
</head>
<body>
Hello
</body>
</html>
[/html]
So if I open the first page and put in Mr and Smith the second page reads "Hello Mr Smith"
I've read some information about querystrings and passing information through the link and retrieving it in the next page but can someone help to explain it in this example so I can see it working.
Thanks.
The simplest example I could think of would be a first page with input boxes for Title and Surname:
[html]
<head>
<title>Test</title>
<table>
<tr>
<td>Title:</td>
<td><p>
<input name="Title" type="text" id="Title" size="20" maxlength="4">
</p> </td>
</tr>
<tr>
<td>Surname:</td>
<td><input name="Surname" type="Text" id="Surname" size="35" maxlength="50"> </td>
</tr>
<td><input name="Reset" type="Reset"
value="Clear Form" />
<a href="Test_Page 2.html">Next</a>
</body>
</html>
[/html]
and a second page which would then show the values in text.
[html]
<head>
<title>Untitl ed Document</title>
</head>
<body>
Hello
</body>
</html>
[/html]
So if I open the first page and put in Mr and Smith the second page reads "Hello Mr Smith"
I've read some information about querystrings and passing information through the link and retrieving it in the next page but can someone help to explain it in this example so I can see it working.
Thanks.
Comment