Form Help

I am trying to set up a form on my website that when submitted it sends an auto reply email to the address provided in the form ((‘POST’,‘Email’)). Here is the code that I have so far, but I need the code to do the auto reply.

$error=“The following errors occured while processing your form input.

    “, $Message);if($Name==”" || $Phone=="" || $Email=="" || $Message=="" ){
  • You did not enter one or more of the required fields. Please go back and try again.”;
    if($errors==1) echo $error;
    $message="Name: “.$Name.”
    Phone: “.$Phone.”
    Email: “.$Email.”
    Where you found us: “.$Whereyoufoundus.”
    Message: “.$Message.”
    $message = stripslashes($message);
    mail("[email protected]”,“Form Submitted at your website”,$message,“From: phpFormGenerator”);

    header(“Refresh: 0;url=”);

    Any help would be greatly appreciated.

Not sure what you’re trying to say there, or what your problem is. You say you need the code for an auto-reply? How does what you’ve tried not work? Did it give any errors?

Sponsor our Newsletter | Privacy Policy | Terms of Service