Re: Multiple options from one form
by Collette McNeill <collette(at)mlwebworks.com>
|
Date: |
Sun, 14 Apr 2002 08:20:49 -0700 |
To: |
"Debbie O'Meara" <domeara(at)QuixNet.net>, hwg-techniques(at)hwg.org |
In-Reply-To: |
debbie |
|
todo: View
Thread,
Original
|
|
<html>
At 02:56 PM 4/13/02 -0700, Debbie asked:<br>
<blockquote type=cite class=cite cite>Hi all--<br><br>
What I don't know how to do is get the Submit function on pages 2a and 2b
to<br>
also submit the info from page1. Or am I even approaching this the
right<br>
way?</blockquote><br>
I carry information from one form to the next this way:<br><br>
1. user fills out Form1 + clicks a Submit Button. <br>
2. All variables are passed to CGI script, which builds Form2 according
to which submit button was pressed.<br>
The CGI includes all variables from the first form (except the first
"submit" button values, which would be redundant) as hidden
input tags ie <.input type="hidden"
name="VarFirstForm"
value="FilledInByUser"><br><br>
So, when the second form is submitted, all variables from the first form
are included. This is easy enough to do by modifying a FormMail
script. There's an example of this method (which hasn't been
updated in over a year) at
<a href="http://www.bayareastartups.com/pages/list.html" eudora="autourl">http://www.bayareastartups.com/pages/list.html</a>
<br><br>
In CGI you can use code like this to print out chunks of html and to save coding/debugging time.<br><br>
<font face="Courier New, Courier">print <<end_of_newformheader;<br>
</font><x-tab> </x-tab>(paste your straight html here) <br>
<x-tab> </x-tab>(flag special characters like @ with a \@ backslash so as not to choke the script)<br>
<font face="Courier New, Courier">end_of_newformheader<br><br>
</font>I've never tried this in conjunction with secure order forms. In the case of one of our e-commerce projects, we accompany a secure order form with a questionnaire by having customers submit forms separately, so that our client simply matches questionnaires with orders at their desk. At this time, sales volume is low enough for this to be a workable process.<br><br>
See, nothing really fancy or mysterious. I hope this helps. If you find a better way to accomplish your goal, please tell us! <br><br>
Collette McNeill<br>
McNeill/Lynner WebWorks<br>
"Good advice costs nothing, and it's worth the price." - Alan Sherman<br>
</html>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA