<?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: Processing Forms with PHP, a Beginner&#8217;s Guide</title>
	<atom:link href="http://www.joedolson.com/articles/2007/02/processing-forms-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/</link>
	<description>Tips and Commentary on Web Accessibility, Usability, and Search Marketing best practices.</description>
	<lastBuildDate>Fri, 30 Jul 2010 16:56:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: KJ</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-34141</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Tue, 11 May 2010 23:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-34141</guid>
		<description>Thanks for the reply. It turns out the host uses a &quot;global&quot; php.ini file. All I needed to do was move a copy it into my domain folder and make modifications there to override some settings.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply. It turns out the host uses a &#8220;global&#8221; <abbr title="Hypertext PreProcessing">PHP</abbr>.ini file. All I needed to do was move a copy it into my domain folder and make modifications there to override some&nbsp;settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Dolson</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-34138</link>
		<dc:creator>Joe Dolson</dc:creator>
		<pubDate>Tue, 11 May 2010 21:09:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-34138</guid>
		<description>@KJ The simple answer is to be sure to include an email &quot;From:&quot; header in the headers area of the &lt;code&gt;mail()&lt;/code&gt; function. That&#039;s described above in the example -- in the place where it says &quot;From: YourSurvey &lt;survey@domain.com&gt;&quot; you&#039;d substitute your desired From: address. 

There is, however, a more complicated answer -- on some server configurations, PHP doesn&#039;t automatically deliver from the From: header just because you&#039;ve told it to. Here&#039;s a brief FAQ discussing some of your options: &lt;a href=&quot;http://stackoverflow.com/questions/2014081/problem-with-php-mail-from-header&quot; rel=&quot;nofollow&quot;&gt;Problem with PHP mail From header&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@KJ The simple answer is to be sure to include an email &#8220;From:&#8221; header in the headers area of the <code>mail()</code> function. That&#8217;s described above in the example&thinsp;&#8212;&thinsp;in the place where it says &#8220;From: YourSurvey &lt;survey@domain.com&gt;&#8221; you&#8217;d substitute your desired From:&nbsp;address. </p>
<p>There is, however, a more complicated answer&thinsp;&#8212;&thinsp;on some server configurations, <abbr title="Hypertext PreProcessing">PHP</abbr> doesn&#8217;t automatically deliver from the From: header just because you&#8217;ve told it to. Here&#8217;s a brief <abbr title="Frequently Asked Questions">FAQ</abbr> discussing some of your options: <a href="http://stackoverflow.com/questions/2014081/problem-with-php-mail-from-header">Problem with <abbr title="Hypertext PreProcessing">PHP</abbr> mail From&nbsp;header</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KJ</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-34107</link>
		<dc:creator>KJ</dc:creator>
		<pubDate>Sat, 08 May 2010 16:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-34107</guid>
		<description>Well written guide. This has helped clear up some questions I have. One thing I have been unable to clear up, (and I&#039;m probably not searching the correct phrase) - when an autoreply is sent to the person who filled out the form, or the information from the form is mailed to a recipient, how do I make sure that &quot;From&quot; is an email address for the domain, and not a generic one created by the host?

TIA</description>
		<content:encoded><![CDATA[<p>Well written guide. This has helped clear up some questions I have. One thing I have been unable to clear up, (and I&#8217;m probably not searching the correct phrase) - when an autoreply is sent to the person who filled out the form, or the information from the form is mailed to a recipient, how do I make sure that &#8220;From&#8221; is an email address for the domain, and not a generic one created by the&nbsp;host?</p>
<p>TIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Kumar Jangra</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-33998</link>
		<dc:creator>Ravi Kumar Jangra</dc:creator>
		<pubDate>Sat, 01 May 2010 05:48:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-33998</guid>
		<description>Nice Form Submitions Example Realy 


Sir, how can we call the submitted values that rare stored in (survey.csv)  file on a html, php file to display what the submitins the visitor has provide.

plz let me know as soon as you go through this Comment.

or u can just mail me : rsuitor@yahoo.com, when the code is coocked.</description>
		<content:encoded><![CDATA[<p>Nice Form Submitions Example&nbsp;Realy </p>
<p>Sir, how can we call the submitted values that rare stored in (survey.csv)  file on a <abbr title="HyperText Markup Language">HTML</abbr>, <abbr title="Hypertext PreProcessing">PHP</abbr> file to display what the submitins the visitor has&nbsp;provide.</p>
<p>plz let me know as soon as you go through this&nbsp;Comment.</p>
<p>or u can just mail me : <a href="mailto:rsuitor@yahoo.com">rsuitor@yahoo.com</a>, when the code is&nbsp;coocked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Dolson</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-33866</link>
		<dc:creator>Joe Dolson</dc:creator>
		<pubDate>Tue, 20 Apr 2010 20:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-33866</guid>
		<description>I&#039;d recommend using PHP to report your errors rather than attempting to write JavaScript alerts as a result. What you&#039;ve done here won&#039;t do anything, because there&#039;s no trigger on the events. If you simply what you&#039;re echoing with plain text: &lt;code&gt;echo &quot;I am sorry, we need your First name, Lastname, and E-mail to process this form&quot;;&lt;/code&gt; it would be more effective.</description>
		<content:encoded><![CDATA[<p>I&#8217;d recommend using <abbr title="Hypertext PreProcessing">PHP</abbr> to report your errors rather than attempting to write JavaScript alerts as a result. What you&#8217;ve done here won&#8217;t do anything, because there&#8217;s no trigger on the events. If you simply what you&#8217;re echoing with plain text: <code>echo "I am sorry, we need your First name, Lastname, and E-mail to process this form";</code> it would be more&nbsp;effective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-33839</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 16 Apr 2010 16:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-33839</guid>
		<description>The basic pf your tutorial:
&lt;?php
if (isset($_POST[&#039;submit&#039;])) {
// This variable is to choose which type of processing you&#039;re using. 
$mode = &quot;email&quot;; // or &quot;csv&quot; or &quot;email&quot;
// These set your initial variables.
$firstname = $_POST[&#039;firstname&#039;];
$lastname = $_POST[&#039;lastname&#039;];
$email = $_POST[&#039;email&#039;];
   // it&#039;s good planning to set your variables explicitly before setting them programatically. 
   // EMPTY FIELD CHECK
	if( (empty($firstname)) &#124;&#124; (empty($lastname)) &#124;&#124; (empty($email) ))
	{
		echo &#039;alert(&quot;I am sorry we need: First Name, Last Name and E-mail.&quot;);&#039;;
		echo &#039;history.back(1);&#039;;
		exit;
	} /* EMPTY FIELD CHECK */
   $error = FALSE;
   if ($email == &quot;none&quot;) {
   $error = TRUE;
   }
   if (isset($firstname) &amp;&amp; isset($lastname) &amp;&amp; isset($email) &amp;&amp; $error == FALSE) {
   $process = TRUE;
   } else {
   $process = FALSE;
   }
once everything is filled in the form re-directs correctly, I just do not get the warning message to come up.</description>
		<content:encoded><![CDATA[<p>The basic pf your tutorial:<br />
&lt;?php<br />
if (isset($_POST[&#039;submit&#039;])) {<br />
// This variable is to choose which type of processing you&#039;re using.<br />
$mode = &quot;email&quot;; // or &quot;csv&quot; or &quot;email&quot;<br />
// These set your initial variables.<br />
$firstname = $_POST[&#039;firstname&#039;];<br />
$lastname = $_POST[&#039;lastname&#039;];<br />
$email = $_POST[&#039;email&#039;];<br />
   // it&#039;s good planning to set your variables explicitly before setting them programatically.<br />
   // EMPTY FIELD CHECK<br />
	if( (empty($firstname)) || (empty($lastname)) || (empty($email) ))<br />
	{<br />
		echo &#039;alert(&#8220;I am sorry we need: First Name, Last Name and E-mail.&#8221;);&#8217;;<br />
		echo &#8216;history.back(1);&#8217;;<br />
		exit;<br />
	} /* EMPTY FIELD CHECK */<br />
   $error = FALSE;<br />
   if ($email == &#8220;none&#8221;) {<br />
   $error = TRUE;<br />
   }<br />
   if (isset($firstname) &amp;&amp; isset($lastname) &amp;&amp; isset($email) &amp;&amp; $error == FALSE) {<br />
   $process = TRUE;<br />
   } else {<br />
   $process = FALSE;<br />
   }<br />
once everything is filled in the form re-directs correctly, I just do not get the warning message to come&nbsp;up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Dolson</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-33838</link>
		<dc:creator>Joe Dolson</dc:creator>
		<pubDate>Fri, 16 Apr 2010 15:42:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-33838</guid>
		<description>Well, what are you doing? What&#039;s the actual code you&#039;re using to create a required field?</description>
		<content:encoded><![CDATA[<p>Well, what are you doing? What&#8217;s the actual code you&#8217;re using to create a required&nbsp;field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-33828</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 15 Apr 2010 18:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-33828</guid>
		<description>Hi, works well, but I keep getting a syntax error when I try to create required field. What am I missing. Thanks</description>
		<content:encoded><![CDATA[<p>Hi, works well, but I keep getting a syntax error when I try to create required field. What am I missing.&nbsp;Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petruha2</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-32404</link>
		<dc:creator>Petruha2</dc:creator>
		<pubDate>Sun, 27 Sep 2009 17:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-32404</guid>
		<description>So the curious portal style of site. What CMS do you use ?</description>
		<content:encoded><![CDATA[<p>So the curious portal style of site. What <abbr title="Content Management System">CMS</abbr> do you use&nbsp;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.joedolson.com/articles/2007/02/processing-forms-with-php/comment-page-1/#comment-30832</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Tue, 14 Apr 2009 13:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.joedolson.com/articles/2007/02/processing-forms-with-php/#comment-30832</guid>
		<description>Hiya, found this article as it&#039;s quite helpful. In the past I have created forms using html and then using php to process them. As I&#039;m a beginner I am still learning ways of validating user input but so far quite fun! Thx</description>
		<content:encoded><![CDATA[<p>Hiya, found this article as it&#8217;s quite helpful. In the past I have created forms using <abbr title="HyperText Markup Language">HTML</abbr> and then using <abbr title="Hypertext PreProcessing">PHP</abbr> to process them. As I&#8217;m a beginner I am still learning ways of validating user input but so far quite fun!&nbsp;Thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
