Forums
This topic is locked
Passing info from one form to the next.
09 Nov 2005 23:13:04 Malcolm X posted:
Heya to all.I just wanted to know if anyone knows how to pass information from one form to the next.
I have created the following forms.
'form1.htm'
'form2.htm'
'form3.htm'
I would like to pass the information from form1.htm to form2.htm and then then information from form1 & 2 to form3.htm.
Once the info has all passed to form3.htm, the user clicks the submit button and info from all 3 forms gets submitted at once.
Any help would be greatly appreciated.
Malcolm.
Replies
Replied 09 Nov 2005 23:54:11
09 Nov 2005 23:54:11 Dave Thomas replied:
form1 action = form2.html
form2 action = form3.html
(hidden field from form 1)
form3 action = [whatever file you use to process the form eventually]
(hidden fields from form 1 & 2)
ok now to pass between pages, (not forms) keep the form name the same on the 3 pages.
submit form1, then on form 2, add some 'hidden fields' naming them in correspondence to the form items in form 1, this will now grab and pass on forms 1&2 to page 3.
now on page 3, just add the same hidden fields for form1, and do the same for the elements you have in form 2.
regards
Dave Thomas
<b>DMX Zone Manager</b>
form2 action = form3.html
(hidden field from form 1)
form3 action = [whatever file you use to process the form eventually]
(hidden fields from form 1 & 2)
ok now to pass between pages, (not forms) keep the form name the same on the 3 pages.
submit form1, then on form 2, add some 'hidden fields' naming them in correspondence to the form items in form 1, this will now grab and pass on forms 1&2 to page 3.
now on page 3, just add the same hidden fields for form1, and do the same for the elements you have in form 2.
regards
Dave Thomas
<b>DMX Zone Manager</b>
Replied 10 Nov 2005 09:10:46
10 Nov 2005 09:10:46 Malcolm X replied:
Hi Dave.
Thanks for replying to my question.
So dose this mean that if I have in form1.htm about 15 text fields, that I have to create in form2.htm 15 hidden fields with the names of each text field?
And also in form2.htm I have another 15 text fields, so that means that form3.htm should have a total of 30 hidden fields which are carried over from forms 1 & 2?.
Dave, thanks for your help.
Malcolm
Thanks for replying to my question.
So dose this mean that if I have in form1.htm about 15 text fields, that I have to create in form2.htm 15 hidden fields with the names of each text field?
And also in form2.htm I have another 15 text fields, so that means that form3.htm should have a total of 30 hidden fields which are carried over from forms 1 & 2?.
Dave, thanks for your help.
Malcolm
Replied 10 Nov 2005 13:03:32
10 Nov 2005 13:03:32 Malcolm X replied:
Dave
Thanks for the feedback. I tryed it as you commented earlier and it didnt work. I continued to ghet the following default message.
-----------------------------
The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
Please try the following:
Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
-----------------------------------------------
I had the form method to POST. Once I changed it to GET, it worked.
Is there any way to have the form working with POST?. Do you know why the above message comes up when I have it set to POST?
Thanks for your help.
Malcolm R.
When
Thanks for the feedback. I tryed it as you commented earlier and it didnt work. I continued to ghet the following default message.
-----------------------------
The page cannot be displayed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.
Please try the following:
Contact the Web site administrator if you believe that this request should be allowed.
Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 405.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Setting Application Mappings, Securing Your Site with Web Site Permissions, and About Custom Error Messages.
-----------------------------------------------
I had the form method to POST. Once I changed it to GET, it worked.
Is there any way to have the form working with POST?. Do you know why the above message comes up when I have it set to POST?
Thanks for your help.
Malcolm R.
When