Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing values between form pages

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm trying to get a form working over multiple pages but I'm having some trouble and was wondering if someone here could help.

I found this piece of Javascript: at which has certainly helped.

The form that I'm creating can be viewed here: . As you can see when you hit submit on the first page the values are passed perfectly through to the next page but then you need to enter in your Street, City and Country. Once you have entered in your Street, City and Country and hit the submit button on the second page it forgets what the values of firstname, lastname, and age are from the first page. What can I do so it remembers the values of firstname, lastname, and age from the first page.

I hope I've explained this alright. If not please let me know.
 
hi philip,
as u know, all html pages are served on the web using HTTP protocol...The problem with HTTP protocol is it is a stateless protocol..i.e it does not maintain the state between an user request... so in order to make ur server remember the user information, what u have to do is setting cookies in the user's system and retrieve it when and where u need it.

Regards
R.Subramanian
 
Hi Philip,

If I am not wrong, what you did was you printed out the value of firstname, lastname and age using Javascript right? What you can do is to print out hidden values as well. So what you can do is to have the <form> tag before your javascript and print out the hidden values using your javascript function as well:-

<input type=&quot;hidden&quot; name=&quot;firstname&quot; value=firstname>

This way, you will be able to pass in the 3 values into the following form.

Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best :)
 
yeah, hidden forms or location.search or frameset &quot;100%,*&quot; (the second frame - for variables) & so on - old question - use search in this forum with keywords u want 2 now about (pass parametres or smth) - it helps...

regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top