BaileyBoy
12-19-2003, 11:55 AM
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
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
directly into a subscribed database (see WHAT I WANT TO ADD below).
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
if permission from the user is given.
Any thoughts?
<!------ORIGINAL---------------->
<form method="post" onsubmit="return checkFields(this,this.group,this.fax,this.question)">
<input type="hidden" name="to" value="<?print $to?>">
<input type="hidden" name="subject" value="<?print $subject?>">
<table>
<tr>
<td>*Your Name:</td>
<td><input size="30" name="name"></td>
</tr>
<tr>
<td>*Your E-Mail:</td>
<td><input size="30" name="email"></td>
</tr>
<tr>
<td>Group/Organization:</td>
<td><input size="30" name="group"></td>
</tr>
<tr>
<td>*Phone:</td>
<td><input size="30" name="phone"></td>
</tr>
<tr>
<td>Fax:</td>
<td><input size="30" name="fax"></td>
</tr>
<tr>
<td valign="top">Question/Comments</td>
<td><textarea name="question" cols="30" rows="3" ><?print $question?></textarea></td>
</tr>
<tr>
<td colspan="2"><br /><br />
<table>
<tr>
<td valign="top"><input type="radio" name="optin" value="Yes" checked="checked"> </td>
<td>Yes, I would like to receive information from your organization.</td>
</tr>
<tr>
<td valign="top"><input type="radio" name="optin" value=""> </td>
<td>I do not wish to receive information from your organization.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="contactUs" value="Submit"></td>
</tr>
</table>
<!-----WHAT I WANT TO ADD-------->
<table>
<form action="http://optin.verticalresponse.com/" method="post">
<input type=hidden name=fid value="2556Ib3942">
<tr><td>Email Address:</td><td><input type=TEXT name="email_address"></td></tr>
<tr><td colspan=2><input type=checkbox value=1 name=optin>I want to receive mailings from your organization</td></tr>
<tr><td colspan=2><input hspace=5 type=image border=0 src="http://oi.vresp.com/join_now.gif" name="form_submitted" value="submit"></form></td></tr>
</table>
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
directly into a subscribed database (see WHAT I WANT TO ADD below).
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
if permission from the user is given.
Any thoughts?
<!------ORIGINAL---------------->
<form method="post" onsubmit="return checkFields(this,this.group,this.fax,this.question)">
<input type="hidden" name="to" value="<?print $to?>">
<input type="hidden" name="subject" value="<?print $subject?>">
<table>
<tr>
<td>*Your Name:</td>
<td><input size="30" name="name"></td>
</tr>
<tr>
<td>*Your E-Mail:</td>
<td><input size="30" name="email"></td>
</tr>
<tr>
<td>Group/Organization:</td>
<td><input size="30" name="group"></td>
</tr>
<tr>
<td>*Phone:</td>
<td><input size="30" name="phone"></td>
</tr>
<tr>
<td>Fax:</td>
<td><input size="30" name="fax"></td>
</tr>
<tr>
<td valign="top">Question/Comments</td>
<td><textarea name="question" cols="30" rows="3" ><?print $question?></textarea></td>
</tr>
<tr>
<td colspan="2"><br /><br />
<table>
<tr>
<td valign="top"><input type="radio" name="optin" value="Yes" checked="checked"> </td>
<td>Yes, I would like to receive information from your organization.</td>
</tr>
<tr>
<td valign="top"><input type="radio" name="optin" value=""> </td>
<td>I do not wish to receive information from your organization.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="contactUs" value="Submit"></td>
</tr>
</table>
<!-----WHAT I WANT TO ADD-------->
<table>
<form action="http://optin.verticalresponse.com/" method="post">
<input type=hidden name=fid value="2556Ib3942">
<tr><td>Email Address:</td><td><input type=TEXT name="email_address"></td></tr>
<tr><td colspan=2><input type=checkbox value=1 name=optin>I want to receive mailings from your organization</td></tr>
<tr><td colspan=2><input hspace=5 type=image border=0 src="http://oi.vresp.com/join_now.gif" name="form_submitted" value="submit"></form></td></tr>
</table>