Jasont
07-07-2004, 12:44 AM
Can someone please tell me the exact code I should use to combine these two forms into one, so that the form posts to both scripts?
It is basically two sign-up forms for my hockey newsletter. The problem is, I need for both scripts to be posted to, without my subscribers having to fill in their name and email twice.
Thank you for any help, it is MUCH appreciated.
Form #1:
---------------------------------------------------------------------
<form method="POST" action="http://www.hockeydiscounts.com/cgi-bin/sf/subscribe2.cgi">
<center><table border="0" cellspacing="0" cellpadding="1"><tr><td>
<FONT SIZE="2">Email address:</FONT></td><td> <input type="text" name="emailaddy" size="20"></td></tr><tr><td>
<FONT SIZE="2">First Name:</FONT></td><td> <input type="text" name="fname" size="20"></td></tr><tr><td>
<FONT SIZE="2">Last Name:</FONT></td><td> <input type="text" name="lname" size="20"></td></tr><tr><td>
</td></tr></table>
<input type="submit" value="Click Here"></center>
<input type="hidden" name="action" value="go">
</form>
---------------------------------------------------------------------
Form #2
---------------------------------------------------------------------
<form method="POST" action="http://www.hockeydiscounts.com/cgi-bin/email/mlm.cgi">
<p>Email address: <input type="text" name="email" size="20"><br>
First Name: <input type="text" name="fname" size="20"><br>
Last Name: <input type="text" name="lname" size="20"><br>
Edit this text for 4th field: <input type="text" name="fourth" size="20"></p>
<p><input type="submit" value="Add Address"></p>
<input type="hidden" name="action" value="signup"><input type="hidden" name="list" value="hockeycontests">
</form>
---------------------------------------------------------------------
It is basically two sign-up forms for my hockey newsletter. The problem is, I need for both scripts to be posted to, without my subscribers having to fill in their name and email twice.
Thank you for any help, it is MUCH appreciated.
Form #1:
---------------------------------------------------------------------
<form method="POST" action="http://www.hockeydiscounts.com/cgi-bin/sf/subscribe2.cgi">
<center><table border="0" cellspacing="0" cellpadding="1"><tr><td>
<FONT SIZE="2">Email address:</FONT></td><td> <input type="text" name="emailaddy" size="20"></td></tr><tr><td>
<FONT SIZE="2">First Name:</FONT></td><td> <input type="text" name="fname" size="20"></td></tr><tr><td>
<FONT SIZE="2">Last Name:</FONT></td><td> <input type="text" name="lname" size="20"></td></tr><tr><td>
</td></tr></table>
<input type="submit" value="Click Here"></center>
<input type="hidden" name="action" value="go">
</form>
---------------------------------------------------------------------
Form #2
---------------------------------------------------------------------
<form method="POST" action="http://www.hockeydiscounts.com/cgi-bin/email/mlm.cgi">
<p>Email address: <input type="text" name="email" size="20"><br>
First Name: <input type="text" name="fname" size="20"><br>
Last Name: <input type="text" name="lname" size="20"><br>
Edit this text for 4th field: <input type="text" name="fourth" size="20"></p>
<p><input type="submit" value="Add Address"></p>
<input type="hidden" name="action" value="signup"><input type="hidden" name="list" value="hockeycontests">
</form>
---------------------------------------------------------------------