Note that there are some explanatory texts on larger screens.

plurals
  1. POMy contact form will not work
    text
    copied!<p>I have a contact form that will not work I've been trying to get it to work for months trying different tutorials with no luck.</p> <p>please <a href="http://bit.ly/16vHlwe" rel="nofollow">take a look here</a> </p> <p>I followed <a href="http://bit.ly/1b4AvEO" rel="nofollow">this tutorial</a> this time </p> <p>THIS IS THE CODE I HAV ON THE FROM THE FIRST LINK EXACTLY THE SAME! <strong>Contact Form </strong> </p> <pre><code>&lt;table width="400" border="0" align="center" cellpadding="0" cellspacing="1"&gt; &lt;tr&gt; &lt;td&gt;&lt;form name="form1" method="post" action="send_contact.php"&gt; &lt;table width="100%" border="0" cellspacing="1" cellpadding="3"&gt; &lt;tr&gt; &lt;td width="16%"&gt;Subject&lt;/td&gt; &lt;td width="2%"&gt;:&lt;/td&gt; &lt;td width="82%"&gt;&lt;input name="subject" type="text" id="subject" size="50"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Detail&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;textarea name="detail" cols="50" rows="4" id="detail"&gt;&lt;/textarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Name&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;input name="name" type="text" id="name" size="50"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Email&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;input name="customer_mail" type="text" id="customer_mail" size="50"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;td&gt;&lt;input type="submit" name="Submit" value="Submit"&gt; &lt;input type="reset" name="Submit2" value="Reset"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>AND THE PHP:</p> <pre><code>&lt;?php // Contact subject $subject ="$subject"; // Details $message="$detail"; // Mail of sender $mail_from="$customer_mail"; // From $header="from: $name &lt;$mail_from&gt;"; // Enter your email address $to ='contact@kieshajewel.com'; $send_contact='mail($to,$subject,$message,$header)'; // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "We've recived your contact information"; } else { echo "ERROR"; } ?&gt; </code></pre> <p>All I want is a simple contact form something like below: and the correct php to make it work. Thanks in advance</p> <pre><code>&lt;form method="post" action="contactengine.php"&gt; &lt;label for="Name"&gt;Name:&lt;/label&gt; &lt;input type="text" name="Name" id="Name" /&gt; &lt;label for="City"&gt;City:&lt;/label&gt; &lt;input type="text" name="City" id="City" /&gt; &lt;label for="Email"&gt;Email:&lt;/label&gt; &lt;input type="text" name="Email" id="Email" /&gt; &lt;label for="Message"&gt;Message:&lt;/label&gt;&lt;br /&gt; &lt;textarea name="Message" rows="20" cols="20" id="Message"&gt;&lt;/textarea&gt; &lt;input type="submit" name="submit" value="Submit" class="submit-button" /&gt; &lt;/form&gt; </code></pre>
 

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