<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create an Awesome PHP Contact Form &#8211; Part 1</title>
	<atom:link href="http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html</link>
	<description>Web Design Magazine</description>
	<lastBuildDate>Wed, 06 Jul 2011 03:12:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jordan</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-9998</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Fri, 14 May 2010 20:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-9998</guid>
		<description>Hi Jack,
Thanks for this write-up, it is a good base. I took into account the suggestions of the above commenters, and changed a few things to match my taste. 
http://www.uncharteddesign.com/blog/2010/05/server-side-php-contact-form-with-validation/

Email validation
Invisible spam protection
Better empty checks
Sanitizing of values submitted
No jquery, substituted some better php errors
Email headers to correct the from address and name
No html message

If you have any concerns about my crediting of you or reposting this, please do let me know.

Jordan</description>
		<content:encoded><![CDATA[<p>Hi Jack,<br />
Thanks for this write-up, it is a good base. I took into account the suggestions of the above commenters, and changed a few things to match my taste.<br />
<a href="http://www.uncharteddesign.com/blog/2010/05/server-side-php-contact-form-with-validation/" rel="nofollow">http://www.uncharteddesign.com/blog/2010/05/server-side-php-contact-form-with-validation/</a></p>
<p>Email validation<br />
Invisible spam protection<br />
Better empty checks<br />
Sanitizing of values submitted<br />
No jquery, substituted some better php errors<br />
Email headers to correct the from address and name<br />
No html message</p>
<p>If you have any concerns about my crediting of you or reposting this, please do let me know.</p>
<p>Jordan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ipkwena</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-8729</link>
		<dc:creator>ipkwena</dc:creator>
		<pubDate>Tue, 13 Apr 2010 06:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-8729</guid>
		<description>This is is a wonderful tutorial, including the follow-up comments. It is very simple to follow yet highlights some important aspects of PHP. Finally I understand the difference between GET and POST due to the way you have explained it.

Regards.</description>
		<content:encoded><![CDATA[<p>This is is a wonderful tutorial, including the follow-up comments. It is very simple to follow yet highlights some important aspects of PHP. Finally I understand the difference between GET and POST due to the way you have explained it.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Haug</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-8495</link>
		<dc:creator>Jacob Haug</dc:creator>
		<pubDate>Tue, 23 Mar 2010 01:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-8495</guid>
		<description>&lt;p&gt;If you are having issues getting something to work using the above tutorial, you should check out our support forum for web design and development.&lt;/p&gt;

&lt;p&gt;http://www.thewebsqueeze.com/forum/&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>If you are having issues getting something to work using the above tutorial, you should check out our support forum for web design and development.</p>
<p><a href="http://www.thewebsqueeze.com/forum/" rel="nofollow">http://www.thewebsqueeze.com/forum/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vernon</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-8480</link>
		<dc:creator>Vernon</dc:creator>
		<pubDate>Fri, 19 Mar 2010 17:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-8480</guid>
		<description>Can someone please help me find the errors in my code I have tried everything and can not seem to get the code to work thanks.

&lt;?php
if(isset($&#095;POST[&#039;submit&#039;])) {
                 //create an empty errors array
                 $errors = array();
                 //our form has been submitted
                 if($&#095;POST[&#039;name&#039;] == &quot;&quot;) {
                        //the name field is empty
                        $errors[] = &quot;The name field is empty&quot;;
                 }
                  if($&#095;POST[&#039;date of birth&#039;] == &quot;&quot;) {
                        //the Date of Birth field is empty
                        $errors[] = &quot;The date of birth field is empty&quot;;
                 }
                if($&#095;POST[&#039;email&#039;] == &quot;&quot;) {
                 //the email field is empty
                 $errors[] = &quot;The email field is empty&quot;;
                 }
                  if($&#095;POST[&#039;copy and paste your work here&#039;] == &quot;&quot;) {
                        //the copy and paste your work here field is empty
                        $errors[] = &quot;The copy and paste your work here field is empty&quot;;
                 }
                 if($&#095;POST[&#039;comment&#039;] == &quot;&quot;) {
                        //the comment field is empty
                        $errors[] = &quot;The comment field is empty&quot;;
                 }
                 if(!stripos($&#095;POST[&#039;email&#039;], &#039;@&#039;)) {
              $errors[] = &quot;The email address was not valid&quot;;
     }
     if($&#095;POST[&#039;spam&#039;] != 42) {
            $errors[] = &quot;The Spam question was answered incorrectly&quot;;
    }
    if(count($errors) == 0) {
             $sendto = &quot;vernonstallins@yahoo.com&quot;;
             $title = &quot;Submit your work&quot;;
             $name = $&#095;POST[&#039;name&#039;];
             $dateofbirth = $&#095;POST[&#039;date of birth&#039;];
             $email = $&#095;POST[&#039;email&#039;];
             $paste your work in the text box below = $&#095;POST[&#039;copy and paste your work in the text box below&#039;];
             $choice = $&#095;POST[&#039;choice&#039;];
             $comment = $&#095;POST[&#039;comment&#039;];
    $message = &lt;&lt;&lt;DATA
    &lt;strong&gt;Name:&lt;/strong&gt; $name 
    &lt;strong&gt;date of birth:&lt;/strong&gt; $date of birth 
    &lt;strong&gt;Email:&lt;/strong&gt; $email 
    &lt;strong&gt;Paste your work in the text box below:&lt;/strong&gt; $Paste your work in the text box below 
    &lt;strong&gt;Choice:&lt;/strong&gt; $choice 
    &lt;strong&gt;Comment:&lt;/strong&gt; $comment
    DATA;

             if(mail($sendto, $title, $message)) {
                 $success = true;
             } 
              }else {
                $success = false;
             }
         else {
           $success = false;
     }
        }   
        ?&gt;



Submit your work
.style1 {
    font-family: &quot;Times New Roman&quot;, Times, serif;
    font-size: medium;
}
.style2 {
    font-family: &quot;Times New Roman&quot;, Times, serif;
    font-size: medium;
    margin-left: 40px;
}
.style3 {
    margin-left: 40px;
}
.style5 {
    font-family: &quot;Times New Roman&quot;, Times, serif;
    font-size: x-large;
}


Submit one of your works to be posted on

Day Dream Reading!

&lt;strong&gt;&lt;em&gt;If your worked is deemed to contain plagiarized and/or offensive material then it will not be posted.&lt;/em&gt;&lt;/strong&gt;

&lt;strong&gt;Name&lt;/strong&gt;
 

&lt;strong&gt;Date of Birth&lt;/strong&gt;
  
  &lt;strong&gt;Email&lt;/strong&gt;
   &#160;&#160;&#160; 
   &lt;strong&gt;What kind of work would you like to submit?&lt;/strong&gt;
    &lt;option  &gt;poem
    &lt;option  &gt;story
     &lt;option 
     &gt;essay&lt;option  &gt;other
    &#160;
    &lt;strong&gt;Paste your work in the text box below.&lt;/strong&gt;
    
&#160;&#160;&#160;
 &#160;
 &lt;strong&gt;In your comment please specify what contact info you would like added to your works, if any.&lt;/strong&gt;
 &lt;strong&gt;&lt;/strong&gt;
 &lt;strong&gt;Such as Telephone number, e-mail, etc. Thanks.&lt;/strong&gt;
 &lt;strong&gt;Comment&lt;/strong&gt;
 &#160;&#160;&#160; 
 &lt;strong&gt;Please answer the below question to prove you are not a computer. Thanks.&#160;&lt;/strong&gt;&#160;&#160;&#160;
 &lt;strong&gt;What is 6 x 7?&lt;/strong&gt;
 
 
 
 
 </description>
		<content:encoded><![CDATA[<p>Can someone please help me find the errors in my code I have tried everything and can not seem to get the code to work thanks.</p>
<p>&lt;?php<br />
if(isset($&#95;POST[&#039;submit&#039;])) {<br />
                 //create an empty errors array<br />
                 $errors = array();<br />
                 //our form has been submitted<br />
                 if($&#95;POST[&#039;name&#039;] == &quot;&quot;) {<br />
                        //the name field is empty<br />
                        $errors[] = &quot;The name field is empty&quot;;<br />
                 }<br />
                  if($&#95;POST[&#039;date of birth&#039;] == &quot;&quot;) {<br />
                        //the Date of Birth field is empty<br />
                        $errors[] = &quot;The date of birth field is empty&quot;;<br />
                 }<br />
                if($&#95;POST[&#039;email&#039;] == &quot;&quot;) {<br />
                 //the email field is empty<br />
                 $errors[] = &quot;The email field is empty&quot;;<br />
                 }<br />
                  if($&#95;POST[&#039;copy and paste your work here&#039;] == &quot;&quot;) {<br />
                        //the copy and paste your work here field is empty<br />
                        $errors[] = &quot;The copy and paste your work here field is empty&quot;;<br />
                 }<br />
                 if($&#95;POST[&#039;comment&#039;] == &quot;&quot;) {<br />
                        //the comment field is empty<br />
                        $errors[] = &quot;The comment field is empty&quot;;<br />
                 }<br />
                 if(!stripos($&#95;POST[&#039;email&#039;], &#039;@&#039;)) {<br />
              $errors[] = &quot;The email address was not valid&quot;;<br />
     }<br />
     if($&#95;POST[&#039;spam&#039;] != 42) {<br />
            $errors[] = &quot;The Spam question was answered incorrectly&quot;;<br />
    }<br />
    if(count($errors) == 0) {<br />
             $sendto = &quot;vernonstallins@yahoo.com&quot;;<br />
             $title = &quot;Submit your work&quot;;<br />
             $name = $&#95;POST[&#039;name&#039;];<br />
             $dateofbirth = $&#95;POST[&#039;date of birth&#039;];<br />
             $email = $&#95;POST[&#039;email&#039;];<br />
             $paste your work in the text box below = $&#95;POST[&#039;copy and paste your work in the text box below&#039;];<br />
             $choice = $&#95;POST[&#039;choice&#039;];<br />
             $comment = $&#95;POST[&#039;comment&#039;];<br />
    $message = &lt;&lt;&lt;DATA<br />
    <strong>Name:</strong> $name<br />
    <strong>date of birth:</strong> $date of birth<br />
    <strong>Email:</strong> $email<br />
    <strong>Paste your work in the text box below:</strong> $Paste your work in the text box below<br />
    <strong>Choice:</strong> $choice<br />
    <strong>Comment:</strong> $comment<br />
    DATA;</p>
<p>             if(mail($sendto, $title, $message)) {<br />
                 $success = true;<br />
             }<br />
              }else {<br />
                $success = false;<br />
             }<br />
         else {<br />
           $success = false;<br />
     }<br />
        }<br />
        ?&gt;</p>
<p>Submit your work<br />
.style1 {<br />
    font-family: &#8220;Times New Roman&#8221;, Times, serif;<br />
    font-size: medium;<br />
}<br />
.style2 {<br />
    font-family: &#8220;Times New Roman&#8221;, Times, serif;<br />
    font-size: medium;<br />
    margin-left: 40px;<br />
}<br />
.style3 {<br />
    margin-left: 40px;<br />
}<br />
.style5 {<br />
    font-family: &#8220;Times New Roman&#8221;, Times, serif;<br />
    font-size: x-large;<br />
}</p>
<p>Submit one of your works to be posted on</p>
<p>Day Dream Reading!</p>
<p><strong><em>If your worked is deemed to contain plagiarized and/or offensive material then it will not be posted.</em></strong></p>
<p><strong>Name</strong></p>
<p><strong>Date of Birth</strong></p>
<p>  <strong>Email</strong><br />
   &nbsp;&nbsp;&nbsp;<br />
   <strong>What kind of work would you like to submit?</strong><br />
    &lt;option  &gt;poem<br />
    &lt;option  &gt;story<br />
     &lt;option<br />
     &gt;essay&lt;option  &gt;other<br />
    &nbsp;<br />
    <strong>Paste your work in the text box below.</strong></p>
<p>&nbsp;&nbsp;&nbsp;<br />
 &nbsp;<br />
 <strong>In your comment please specify what contact info you would like added to your works, if any.</strong><br />
 <strong></strong><br />
 <strong>Such as Telephone number, e-mail, etc. Thanks.</strong><br />
 <strong>Comment</strong><br />
 &nbsp;&nbsp;&nbsp;<br />
 <strong>Please answer the below question to prove you are not a computer. Thanks.&nbsp;</strong>&nbsp;&nbsp;&nbsp;<br />
 <strong>What is 6 x 7?</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Hall</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-8244</link>
		<dc:creator>Jordan Hall</dc:creator>
		<pubDate>Thu, 18 Feb 2010 12:42:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-8244</guid>
		<description>I&#039;m the developer of a PHP contact form creation class called Contacular. Head to http://contacular.co.uk/ to take a look if you wish!</description>
		<content:encoded><![CDATA[<p>I&#8217;m the developer of a PHP contact form creation class called Contacular. Head to <a href="http://contacular.co.uk/" rel="nofollow">http://contacular.co.uk/</a> to take a look if you wish!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karey</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-8049</link>
		<dc:creator>Karey</dc:creator>
		<pubDate>Fri, 08 Jan 2010 06:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-8049</guid>
		<description>Thanks for such an easy to follow tutorial! I&#039;m fairly new to PHP and especially forms, so found this post and the corresponding comments very helpful.</description>
		<content:encoded><![CDATA[<p>Thanks for such an easy to follow tutorial! I&#8217;m fairly new to PHP and especially forms, so found this post and the corresponding comments very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darren</title>
		<link>http://www.thewebsqueeze.com/web-design-tutorials/create-an-awesome-php-contact-form-part-1.html/comment-page-1/#comment-7612</link>
		<dc:creator>darren</dc:creator>
		<pubDate>Tue, 13 Oct 2009 16:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsqueeze.com/?p=2407#comment-7612</guid>
		<description>hi jack 
i to have tried to add email headers the mail fucntion
and i am getting the something wrong with form error all the time.   all i wish to do is add email headers as the form doesnt have reply to email and from etc. also it isnt html rendered. the tags show.

any ideas  i would really appreciate explaination of the if(mail()) {} fuction i get what it is doing but i dont see what its condition is?

many thanks
darren</description>
		<content:encoded><![CDATA[<p>hi jack<br />
i to have tried to add email headers the mail fucntion<br />
and i am getting the something wrong with form error all the time.   all i wish to do is add email headers as the form doesnt have reply to email and from etc. also it isnt html rendered. the tags show.</p>
<p>any ideas  i would really appreciate explaination of the if(mail()) {} fuction i get what it is doing but i dont see what its condition is?</p>
<p>many thanks<br />
darren</p>
]]></content:encoded>
	</item>
</channel>
</rss>

