I've been referred here from the HTML forum as I'm told the answer lies in javascript.
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, The pages will be within the same browser session and I would like it to all be client side.
[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"
What would the javascipt be on the two pages in the example above?
Thanks.
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, The pages will be within the same browser session and I would like it to all be client side.
[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"
What would the javascipt be on the two pages in the example above?
Thanks.
Comment