Click to See Complete Forum and Search --> : One form across multiple pages
geek_grrrl
06-17-2003, 08:24 PM
Hiya,
I need to add some fields to the form on this page http://www.originalbackpackers.com.au/html/bookings.html and split the form across two (maybe three) pages.
I am an ASP know nothing (I didn't add the code to the form referenced above) but I'm guessing there's some way of capturing the data from all pages of the new form and so it can be submitted in one email.
If anyone can tell me how to achieve this I'd be mightly greatful.
Muchas Grathias in advance.
GG
Bullschmidt
06-18-2003, 03:29 AM
And another approach might be to save every field into its own session variable.
geek_grrrl
06-25-2003, 09:22 PM
Um, yup I'm a terrible speller!! :D
I've had a look at the source code behind the links Dave posted http://www.DaveClarkConsulting.com/research/send_from.html and have tried to relate it to the other suggestions below but sadly I don't know enough for the answers to make sense to me.
To-date I've set up my form which goes over three pages >>
http://www.jetsupport.com.au/scb/html/bookings_new.html
http://www.jetsupport.com.au/scb/html/bookings2.html
http://www.jetsupport.com.au/scb/html/bookings3.html
What I can't figure out is how to change the code I have so that the variables from the first two pages hang out in cyberspace until the submit button on the third page is hit.
I'm thinking I need to change the Form Name, Action and Method for bookings_new.html and bookings2.html + add in some code that allows for the variables to be carried over. I'm also guessing some changes may need to be made to bookings3.html + the asp files attached.
Again any help would be much appreciated!!
GG
geek_grrrl
06-26-2003, 08:54 PM
Thanks so much Dave. Am up to the bit where I take the code below and put it in bookings2.asp and bookings3.asp:
<%
For Each fld in Request.Form
Response.Write "<input type=""hidden"" name=""" & fld & """ value=""" & Trim(Request.Form(fld).Value) & """>" & vbCrLf
Next
%>
Coupla questions...
1. I can fill in the input types and names for each variable but am confused as to what to put into the rest of the code (see bolded bit above). My first variable on http://www.jetsupport.com.au/scb/html/bookings_new.html named "FirstName", for example, doesn't have any values, whereas the radio buttons look like they are one variable with three values?!? Are you able to provide me with some direction here??
2. Am I creating multiple instances of the code above i.e. one for each variable?
3. Where abouts in bookings2.asp and bookings3.asp do I put the code - <body>?
Many many thanks!!
GG