Note that there are some explanatory texts on larger screens.

plurals
  1. POphp form send email
    primarykey
    data
    text
    <p>I know my php form works here on godaddy server: <a href="http://thespanishlanguageacademy.net/los-angeles/learn-spanish-kids-children/kontact.html" rel="nofollow">http://thespanishlanguageacademy.net/los-angeles/learn-spanish-kids-children/kontact.html</a></p> <p>Please test it yourself put your email address in and it will send you a copy.</p> <p>I copy the same code into a different server. This server is not go daddy. I know php works on this server, but for some reason this form is not working:</p> <p><a href="http://hancockcollege.us/kontact.html" rel="nofollow">http://hancockcollege.us/kontact.html</a></p> <p>Here is the php code:</p> <pre><code>// if the Email_Confirmation field is empty if(isset($_POST['Email_Confirmation']) &amp;&amp; $_POST['Email_Confirmation'] == ''){ // put your email address here scott.langley.ngfa@statefarm.com, slangleys@yahoo.com $youremail = 'bomandty@gmail.com'; // prepare a "pretty" version of the message $body .= "Thank You for contacting us! We will get back with you soon."; $body .= "\n"; $body .= "\n"; foreach ($_POST as $Field=&gt;$Value) { $body .= "$Field: $Value\n"; $body .= "\n"; } $CCUser = $_POST['EmailAddress']; // Use the submitters email if they supplied one // (and it isn't trying to hack your form). // Otherwise send from your email address. if( $_POST['EmailAddress'] &amp;&amp; !preg_match( "/[\r\n]/", $_POST['EmailAddress']) ) { $headers = "From: $_POST[EmailAddress]"; } else { $headers = "From: $youremail"; } // finally, send the message mail($youremail, 'Form request', $body, $headers, $CCUser ); } // otherwise, let the spammer think that they got their message through </code></pre>
    singulars
    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.
 

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