Contact Form Submit to 2 places?

liunx

Guest
I have a contact form on my site that has a submit yes/no to receive updates from me. Up to now I have copied and pasted the <br />
YES's from the emails to a excel doc. NOW I want to use a line of code from a third-party that sends the users e-mail address<br />
directly into a subscribed database (see WHAT I WANT TO ADD below). <br />
<br />
Here's the rub: I want the original contact form to come to me as usual, AND have the email address go to that third-party with one SUBMIT click <br />
if permission from the user is given.<br />
<br />
Any thoughts?<br />
<br />
<!------ORIGINAL----------------><br />
<br />
<form method="post" onsubmit="return checkFields(this,this.group,this.fax,this.question)"><br />
<input type="hidden" name="to" value="<?print $to?>"><br />
<input type="hidden" name="subject" value="<?print $subject?>"><br />
<table><br />
<tr><br />
<td>*Your Name:</td><br />
<td><input size="30" name="name"></td><br />
</tr><br />
<tr><br />
<td>*Your E-Mail:</td><br />
<td><input size="30" name="email"></td><br />
</tr><br />
<tr><br />
<td>Group/Organization:</td><br />
<td><input size="30" name="group"></td><br />
</tr><br />
<tr><br />
<td>*Phone:</td><br />
<td><input size="30" name="phone"></td><br />
</tr><br />
<tr><br />
<td>Fax:</td><br />
<td><input size="30" name="fax"></td><br />
</tr><br />
<tr><br />
<td valign="top">Question/Comments</td><br />
<td><textarea name="question" cols="30" rows="3" ><?print $question?></textarea></td><br />
</tr><br />
<tr><br />
<td colspan="2"><br /><br /><br />
<table><br />
<tr><br />
<td valign="top"><input type="radio" name="optin" value="Yes" checked="checked">&nbsp;&nbsp;</td><br />
<td>Yes, I would like to receive information from your organization.</td><br />
</tr><br />
<tr><br />
<td valign="top"><input type="radio" name="optin" value="">&nbsp;&nbsp;</td><br />
<td>I do not wish to receive information from your organization.</td><br />
</tr><br />
</table><br />
</td><br />
</tr><br />
<tr><br />
<td colspan="2"><input type="submit" name="contactUs" value="Submit"></td><br />
</tr><br />
</table><br />
<br />
<br />
<!-----WHAT I WANT TO ADD--------><br />
<br />
<br />
<table><br />
<form action="http://optin.verticalresponse.com/" method="post"><br />
<br />
<input type=hidden name=fid value="2556Ib3942"><br />
<tr><td>Email Address:</td><td><input type=TEXT name="email_address"></td></tr><br />
<br />
<tr><td colspan=2><input type=checkbox value=1 name=optin>I want to receive mailings from your organization</td></tr><br />
<br />
<tr><td colspan=2><input hspace=5 type=image border=0 src=http://www.webdeveloper.com/forum/archive/index.php/"http://oi.vresp.com/join_now.gif" name="form_submitted" value="submit"></form></td></tr><br />
</table><!--content-->BailyBoy,<br />
You could put the second form in an IFRAME and then use javascript to submit it before you submit the original form.<br />
You could of course just do the second post from the server script (whatever you're using) that handles the first form.<!--content-->
 
Back
Top