Hi all. I am running into a problem with posting html data into a PHP
script. The script works on another site that I have created, with this
html code, the variables are not passing to the sendmail.php script.
Below is the HTML code:
<td width="608" height="807" valign="top"><div align="center">
<form name="submit" method="post"
action="http://www.neighborhoodchoices.com/sendmail.php">
<table width="586" height="752" border="1"
cellpadding="8" cellspacing="2">
<tr>
<td width="288" height="729" valign="top">
<p><font color="#FF0000">*</font>
I am a:<br>
<input type="radio" name="type"
id="type" value="Referring Client">
Referring Client<br>
<input type="radio" name="type"
id="type" value="Relocation Counselor">
Relocation Counsleor<br>
<input type="radio" name="type"
id="type" value="Fellow Realtor">
Fellow Realtor<br>
<input type="radio" name="type"
id="type" value="Buyer">
Buyer<br>
<input type="radio" name="type"
id="type" value="Seller">
Seller <br>
<font color="#FF0000"><br>
*</font> Your Name:
<input name="name" type="text" id="name"
size="40">
BLAH, BLAH, BLAH...
I think the problem may be due to the split table inside of the form,
but the form will reset completely if executed to do so. Now, the
sendmail.php script:
<?php
$to = "[EMAIL PROTECTED]";
$subject = "Submittal Request from NeighborhoodChoices.com";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: NeighborhoodChoices.com
<[EMAIL PROTECTED]>\r\n";
$headers .= "Reply-To: ".$name." <".$email.">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: iCEx Networks HTML-Mailer v1.0";
$subject = stripslashes($subject);
$message = stripslashes($message);
$body = "<font face=Arial size=-1><b>$name</b> has submited a request
on neighborhoodchoices.com. <br><b>$name</b> is a <b>$type</b>, and can
be reached by: <br>Email: <b><a href=mailto:$email>$email</a></b>
<br>Phone: <b>$phone</b> <br>Fax: <b>$fax</b> <br>Address:
<b>$address</b> <br>Mobile:
<b>$mobile<b\><br>\n\nComments:<br><br>$comments</font>";
$success = @mail($to,$subject,$body,$headers);
print $body;
?>
<P>
Output looks like this:
has submited a request on neighborhoodchoices.com.
is a , and can be reached by:
Email:
Phone:
Fax:
Address:
Mobile:
Comments:
Any ideas?
Thanks
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php