Hey all,
I have this little script to display one set of html depending on a function that I defined to check an email address, or another set of html if the email addy was false. But I keep getting a parse error (expecting '")' on designated line). The thing is that an error on this line doesn't make sense. Any ideas?
Ras.
<?php if(!email_check($email)) // email checking function included
{ ?>
<div align="center">
<table width="50%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
<div align="center">
<h3>The Email address you entered was invalid. </h3>
</div>
</td>
</tr>
<tr>
<td>
<div align="center">
Please click 'OK' and try again.</div>
</td>
</tr>
<tr>
<td>
<div align="center">
<input type="Button" value="OK" onclick="javascript: history.back(-1);"></div>
</td>
</tr>
</table>
<p></p>
</div><?php
}else{ // the line with the error...but the error has to be elsewhere...
$count = count($HTTP_POST_VARS);
extract($HTTP_POST_VARS);
for($i=1; $i<=$count; i++)
{
$shows= "show$i";
$tradeshows = "Desired Shows: <br>";
$tradeshows .= $$shows."<br>";
}
// mail out info
$info = "\n"."\n"
.$tradeshows."\n"."\n"
.'Name: '.$name."\n"
.'Address: '.$address."\n".$city.", ".$state.", ".$zip."\n"
.'Phone: '.$phone."\n"
.'Email: '.$email."\n"
.'Comments: '."\n".$body."\n";
$mail1_headers = "From: $email <$email>\n";
$mail1_headers .= "Reply-To: $email\n";
$mail1_headers .= "Cc: \n";
$mail1_headers .= "omitted\n";
$mail1_headers .= "Content-type: text/html";
mail("a@b.com","title", "body", $mail1_headers);
?>