471,618 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Passing input values between pages.

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:



<input name="Title" type="text" id="Title" size="20" maxlength="4">
</p> </td>

<td><input name="Surname" type="Text" id="Surname" size="35" maxlength="50"></td>

<td><input name="Reset" type="Reset"
value="Clear Form" />
<a href="Test_Page2.html">Next</a>

and a second page which would then show the values in text.


<title>Untitled Document</title>


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.

Sep 1 '07 #1
6 2146
Death Slaught
1,137 1GB
You could just use Javascript in my opinion it would be easier heres a link to it just find the javascript tutorial on the left.

Thanks, Death
Sep 1 '07 #2
Death Slaught
1,137 1GB
O and please use proper HTML tags you can find them above the textbox the HTML one looks like this <>

- Death
Sep 1 '07 #3
Thanks, Not sure what happened to the tags, pasted out and back into Dreamweaver fine.

Any other thoughts out there?
Sep 1 '07 #4
7,435 Expert 4TB
As stated, if the form is on the same page then you must use javascript, or submit the form to a server where the language there can handle it and reserve the page.
Sep 1 '07 #5
OK & thanks for updating the text.

The input side is on a different page to the output side but within the same browser session and it won't be interacting with a server.

What would the javascipt be on the two pages in the example above?

It might seem that I'm being stupid, but I'm not going to "get it" from reading another set of online tutorials (we do all have different learning styles after all)
- but I'm convinced if i can just see it working in a simple example like this I can apply the principles in my design.

Thanks again.
Sep 2 '07 #6
7,435 Expert 4TB
You need to ask that question on the javascript board.
Sep 2 '07 #7

Post your reply

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

Similar topics

5 posts views Thread by Paul | last post: by
1 post views Thread by Paul | last post: by
5 posts views Thread by Raju V.K | last post: by
1 post views Thread by olduncleamos | last post: by
28 posts views Thread by Skeets | last post: by
4 posts views Thread by Auddog | last post: by
1 post views Thread by Steve | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

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.