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.&nbsp; 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
&quot;submit&quot; button values, which would be redundant) as hidden
input tags ie &lt;.input type=&quot;hidden&quot;
name=&quot;VarFirstForm&quot;
value=&quot;FilledInByUser&quot;&gt;<br><br>
So, when the second form is submitted, all variables from the first form
are included.&nbsp; This is easy enough to do by modifying a FormMail
script.&nbsp; 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 &lt;&lt;end_of_newformheader;<br>
</font><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(paste your straight html here) <br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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.&nbsp; 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.&nbsp; At this time, sales volume is low enough for this to be a workable process.<br><br>
See, nothing really fancy or mysterious.&nbsp; I hope this helps.&nbsp; If you find a better way to accomplish your goal, please tell us! <br><br>
Collette McNeill<br>
McNeill/Lynner WebWorks<br>
&quot;Good advice costs nothing, and it's worth the price.&quot; - Alan Sherman<br>
</html>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA