Note that there are some explanatory texts on larger screens.

plurals
  1. POcontact forms not working on site
    primarykey
    data
    text
    <p>I'm currently working on this site: <a href="http://www.skipsaviano.com/contact.html" rel="nofollow">link to site</a></p> <p>and the form does not seem to be working. When you submit it always goes to the error page. I also tried this site on a windows server (not sure if that would make a difference) and the form is working fine. </p> <p>here is the code i'm using...</p> <pre><code> &lt;?php // get posted data into local variables $EmailTo = "***@***.com"; $Subject = Trim(stripslashes($_POST['Subject'])); $Name = Trim(stripslashes($_POST['Name'])); $Email = Trim(stripslashes($_POST['Email'])); $Address = Trim(stripslashes($_POST['Address'])); $City = Trim(stripslashes($_POST['City'])); $State = Trim(stripslashes($_POST['State'])); $Zip = Trim(stripslashes($_POST['Zip'])); $Phone = Trim(stripslashes($_POST['Phone'])); $Message = Trim(stripslashes($_POST['Message'])); /* $Sign = Trim(stripslashes($_POST['Sign'])); $Volunteer = Trim(stripslashes($_POST['Volunteer'])); $Walk = Trim(stripslashes($_POST['Walk'])); $Coffee = Trim(stripslashes($_POST['Coffee'])); $Calls = Trim(stripslashes($_POST['Calls'])); $Donate = Trim(stripslashes($_POST['Donate'])); */ $EmailFromName = $Name; $EmailFromAddress = $Email; // validation $validationOK=true; if (!$validationOK) { print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=error.html\"&gt;"; exit; } // prepare email body text $Body = ""; $Body .= "This Email was sent from the Saviano for State Representative Website, contact page."; $Body .= "\n"; $Body .= "\n"; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Zip: "; $Body .= $Zip; $Body .= "\n"; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "\n"; $Body .= "Subject: "; $Body .= $Subject; $Body .= "\n"; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; $Body .= "\n";/* $Body .= "Sign: "; $Body .= $Sign; $Body .= "\n"; $Body .= "\n"; $Body .= "Volunteer: "; $Body .= $Volunteer; $Body .= "\n"; $Body .= "\n"; $Body .= "Walk: "; $Body .= $Walk; $Body .= "\n"; $Body .= "\n"; $Body .= "Coffee: "; $Body .= $Coffee; $Body .= "\n"; $Body .= "\n"; $Body .= "Calls: "; $Body .= $Calls; $Body .= "\n"; $Body .= "\n"; $Body .= "Donate: "; $Body .= $Donate;*/ $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: $EmailFromName &lt;$EmailFromAddress&gt;"); // redirect to success page if ($success){ print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=thanks.html\"&gt;"; } else{ print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=error.html\"&gt;"; } ?&gt; </code></pre> <p>p.s. the forms on the survey and volunteer page don't work also but work on the windows server. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload