Howdy,
It's been a few years since i last used php, anyways....
I have a one page site with a form that is emailed to my client...
When I submit the form I keep getting the error message that I put in the code...
And was wondering what the error could be... I dont think it is the code as I have pretty much copied it out of my book..could it be a server issue
Here's the code anyways and the site
Thanks in advance
AD
It's been a few years since i last used php, anyways....
I have a one page site with a form that is emailed to my client...
When I submit the form I keep getting the error message that I put in the code...
And was wondering what the error could be... I dont think it is the code as I have pretty much copied it out of my book..could it be a server issue
Here's the code anyways and the site
Code:
<?php
if($BeenSubmitted)
{
if ($email)
{
if(mail($MailTo, $Query, "Name: $name Phone: $phone Product: $product Comment $comment", "From: $email"))
{
print("<B><center><font face=Arial, Helvetica, sans-serif color=#FF8A15>Thank you for your query, we will contact you shortly!</font></center></B>\n");
}
else
{
print ("<b><center><font face=Arial, Helvetica, sans-serif color=#FF8A15>An Error Occured...Please try to resubmit the form!</font></b></center>\n");
}
}
else
{
print ("<b><center><font face=Arial, Helvetica, sans-serif color=#FF8A15>Please enter an email address</font></b></center>\n");
}
}
?>
Thanks in advance
AD