Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy isnt this PHP Mailer for HTML Forms working?
    primarykey
    data
    text
    <p>This is the PHP code:</p> <pre><code>&lt;?PHP $to = "adschweinfurth@gmail.com"; $subject = "New Finance Request"; $headers = "Request:"; $forward = 0; $location = ""; $date = date ("l, F jS, Y"); $time = date ("h:i A"); $msg = "Below is the request sent on $date at $time.\n\n"; if ($_SERVER['REQUEST_METHOD'] == "POST") { foreach ($_POST as $key =&gt; $value) { $msg .= ucfirst ($key) ." : ". $value . "\n"; } } else { foreach ($_GET as $key =&gt; $value) { $msg .= ucfirst ($key) ." : ". $value . "\n"; } } mail($to, $subject, $msg, $headers); if ($forward == 1) { header ("Location:$location"); } else { echo "Thanks! Your request has been sent for approval and someone will be in contact with you soon!"; } ?&gt; </code></pre> <p>This is the HTML code:</p> <pre><code>&lt;form action="mailer.php" method="post"&gt; &lt;strong&gt;Name:&lt;/strong&gt;&lt;br /&gt; &lt;input type="text" name="Name" /&gt; &lt;br /&gt; &lt;br /&gt; &lt;strong&gt;Email:&lt;/strong&gt;&lt;br /&gt; &lt;input type="text" name="Email" /&gt; &lt;br /&gt; &lt;br /&gt; &lt;strong&gt;Organization:&lt;/strong&gt;&lt;br /&gt; &lt;input type="text" name="Org:" /&gt; &lt;br /&gt; &lt;br /&gt; &lt;strong&gt;Amount:&lt;/strong&gt;&lt;br /&gt; &lt;input type="text" name="Amount" /&gt; &lt;br /&gt; &lt;br /&gt; &lt;strong&gt;Explain Request:&lt;/strong&gt;&lt;br /&gt; &lt;textarea rows="5" cols="30" name="Message"&gt;&lt;/textarea&gt; &lt;br /&gt; &lt;hr /&gt; &lt;input type="submit" name="submit" value="Submit"&gt; &lt;/form&gt; </code></pre> <p>I can not for the life of me get it to actually send the email. It goes to the thanks page, but I never receive any email...Let me know, comment below.</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