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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Forms One Email..can it be done? 1

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi,

I'm not an asp programmer by any stretch of the imagination, however I did manage to create a simple form for our company that captures the data and emails it to our Sales department.

Anyhow, I'm updating it and it's getting long. I'd like to brake it in two with a continue botton from one page to the next. Does anyone know how to do this? Is is relatively simple? Any suggestions or help will be greatly appreciated.

Thanks,
DanH
 
very simple
when you pass the values to the second screen simply add these to hidden form fields
ie
<input type=&quot;hidden&quot; name=&quot;txt1&quot; value=&quot;<%= requesxt.form(&quot;FirstName&quot;) %>&quot;>

thus the second form is filled out and submitted passing the first pages values along with the second page. When you get to your processing script you have the control to recognize all the fields as they in all respect were submitted by the one (second) form I dare to learn more
admin@onpntwebdesigns.com
 
I suppose before someone points out the use of session varaibles I'll do it. :)

the other option you have avaiable to you is to create session varaibles for your form values after passing them. Server hungry I warn you when it comes to sssion variables. It doesn't sound like you have that exstensive of data collection at hand though
basically when you submit the first page
ie
<input type=&quot;submit&quot; value=&quot;Continue&quot;>

in the beginning of the second page do a simple declaration
session(&quot;FirstName&quot;) = Request.Form(&quot;FirstName&quot;)
now we have a session object or variable for you to use literally at your disposal around the site while that user is logged into that session.
so when you get to the processing script you reference your session variable instead of a form value
bodytext = &quot;The first name passed was&quot; & session(&quot;FirstName&quot;)

I remind you though this is not a good idea with high viewing crouds or a high number of sessions open at once. server gets loaded etc... etc..

hope that helps out I dare to learn more
admin@onpntwebdesigns.com
 
Darn crouds! :p

Sorry, couldn't resist
halo.gif

-Tarwn --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
 
Perfect! Thanks a million, onpnt!

--DanH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top