I really do not know php, but I was given the code in question.
Unfortunately it does not download.
I would like to have people submit information on the follwing web page, and when they click "submit" it wil be forwarded to 2 e-mail addresses.
Can anyone help?
The code is as follows:
<?php
if (isset($HTTP_POST_VARS['nSubmit'])) {
_?>
<html><head><title></title></head><body><center><table border="1">
____<tr><td>Your Name :</td><td><?php echo $HTTP_POST_VARS['nName'];?></td></tr>
____<tr><td>Your Email:</td><td><?php echo $HTTP_POST_VARS['nEmail']; ?></td></tr>
__<tr><td>Your Phone:</td><td><?php echo $HTTP_POST_VARS['nPhone']; ?></td></tr>
__<tr><td colspan="2"><input type="button" value="back" onclick="window.history.back();" /></td></tr>
</table></center></body></html>
<?php
} else {
$contents =<<< Qindex
<html><head><title></title></head><body><center>
<form name="nForm" method="post" action="http://www.LONGPORT.info/email.php"><table>
<td width="479">Patrick Henry said TAXATION WITHOUT REPRESEDNTATION IS TYRNAY<BR> Please read and fill in your name at the bottom: <br>I believe that part time resedents should be permitted to vote in local {i.e. Municipal and county} elections.<br>
If you agree click
SEND PETITION) <br>
</td>
____<tr><td>Name :</td><td><input type="text" name="nName"/></td></tr>
____<tr><td>Email:</td><td><input type="text" name="nEmail" /></td></tr>
__<tr><td>Phone:</td><td><input type="text" name="nPhone" /></td></tr>
__<tr><td colspan="2"><input type="submit" name="nSubmit" value="Send Petition" /></td></tr>
</table></form>
___</center></body></html>
Qindex;
_$headers= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: LONGPORT <LONGPORT@qindex.info>\n";
if( mail("LONGPORT@HOTMAIL.com", "email containing an HTML page", $contents, $headers) )
_____echo "The email has been sent successfully.";
} //if (isset($HTTP_POST_VARS['nSubmit']))
?>
Thank you to any and all that respond and can solve my dilema.
Jim