Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: multiple forms - one e-mail message


Message #1 by monique@m... on Fri, 16 Nov 2001 00:55:56
Monique, this is the classic problem of stateless systems.  Probably the
simplest and most common solution - though not the most elegant - is to
use hidden fields on second and subsequent forms to retain the values
from the preceding forms.  Pass the name and address from your first
form into your second, read those passed values and set them into hidden
fields on your second form, then pass all field values (hidden and
visible) to the code which follows your submit.


-----Original Message-----
From: monique@m... [mailto:monique@m...] 
Sent: Friday, November 16, 2001 12:56 AM
To: HTML Code Clinic
Subject: [html_code_clinic] multiple forms - one e-mail message

After spending the entire evening browsing the web, I still haven't 
found an answer to my problem. I have designed a very large form for 
a website. Instead of demanding customers to scroll endlessly, I 
would like to cut this form in two 'subforms'. For instance: on the
first 
page customers fill in their name and address, then click on 
"proceed' and on the second page they select the product type, and 
finally hit the submit-button. I guess one option is to create two 
different forms, but then I would receive two separate e-mails, with no 
connection between them. I would have no ideau what order relates 
to what customer. Does anyone know how I can have separate 
forms, but only one e-mail message returning from the server?

Thanks a lot, Monique
jmail@d...
$subst('Email.Unsub')


  Return to Index