<?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: Secure PHP Contact Form</title>
	<atom:link href="http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/</link>
	<description>PHP, WordPress and Business Ramblings</description>
	<lastBuildDate>Thu, 02 Feb 2012 19:31:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-3/#comment-21057</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Wed, 17 Aug 2011 09:13:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-21057</guid>
		<description>Hi Ben, you could use an anchor link instead to jump back to the form. So where the error message is to be displayed, add an id to the ul tag, and then change the form action to include #id-name on the end of it, where id-name is the name of the ID. Hope that makes sense :)</description>
		<content:encoded><![CDATA[<p>Hi Ben, you could use an anchor link instead to jump back to the form. So where the error message is to be displayed, add an id to the ul tag, and then change the form action to include #id-name on the end of it, where id-name is the name of the ID. Hope that makes sense <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-3/#comment-20934</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 15 Aug 2011 17:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20934</guid>
		<description>Hi Sarah,

Apologies if there is a really simple solution to this - I&#039;m a bit of a PHP dufus.

Is it possible to avoid the &#039;return to top of page&#039; behaviour when incorrect details are entered into the form?

I have a contact form that is quite a long way down a page and it would be preferable if the warning message was immediately visible when the user presses &#039;submit&#039;.

Thanks in advance and keep up the good work...

Ben :)</description>
		<content:encoded><![CDATA[<p>Hi Sarah,</p>
<p>Apologies if there is a really simple solution to this &#8211; I&#039;m a bit of a PHP dufus.</p>
<p>Is it possible to avoid the &#039;return to top of page&#039; behaviour when incorrect details are entered into the form?</p>
<p>I have a contact form that is quite a long way down a page and it would be preferable if the warning message was immediately visible when the user presses &#039;submit&#039;.</p>
<p>Thanks in advance and keep up the good work&#8230;</p>
<p>Ben <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20698</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Fri, 29 Jul 2011 07:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20698</guid>
		<description>Hi Mandy, I&#039;ve taken a look at that page and there&#039;s no opening HTML or anything around the form? It&#039;s looking very incomplete.

I&#039;ve put up a completepage version of the form at http://pastie.org/private/ny6dzdhn8c00vnaefr8n7w for you to copy and try. I&#039;ve made one minor modification which may fix your problem too.

Let me know if that works :)

PS Steve you&#039;re welcome to give that a try. If not drop me a link to your form and I&#039;ll take a look for you :)</description>
		<content:encoded><![CDATA[<p>Hi Mandy, I&#039;ve taken a look at that page and there&#039;s no opening HTML or anything around the form? It&#039;s looking very incomplete.</p>
<p>I&#039;ve put up a completepage version of the form at <a href="http://pastie.org/private/ny6dzdhn8c00vnaefr8n7w" rel="nofollow" class="external">http://pastie.org/private/ny6dzdhn8c00vnaefr8n7w</a> for you to copy and try. I&#039;ve made one minor modification which may fix your problem too.</p>
<p>Let me know if that works <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>PS Steve you&#039;re welcome to give that a try. If not drop me a link to your form and I&#039;ll take a look for you <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20693</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 28 Jul 2011 23:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20693</guid>
		<description>Mandy,

I have had a similar issue with the contact form on my site, and have searched diligently for an improper character to no avail. The form functions fine and redirects on my development server, but fails to redirect (although it sends the email) on my actual site. The only difference I can find is that the website runs an older version of PHP than my computer. I finally gave up and just accepted that everyone was going to email me twice before giving up.

Steve</description>
		<content:encoded><![CDATA[<p>Mandy,</p>
<p>I have had a similar issue with the contact form on my site, and have searched diligently for an improper character to no avail. The form functions fine and redirects on my development server, but fails to redirect (although it sends the email) on my actual site. The only difference I can find is that the website runs an older version of PHP than my computer. I finally gave up and just accepted that everyone was going to email me twice before giving up.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandy</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20690</link>
		<dc:creator>Mandy</dc:creator>
		<pubDate>Thu, 28 Jul 2011 21:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20690</guid>
		<description>Hi Sarah,

I tried to view the source code, but you can&#039;t see the PHP once it gets to
the browser. I pulled the page off of the server and opened it in notepad
and there is nothing before that opening line. I really appreciate your
attention to my issue. If you get a chance, the url is
http://www.advancedairsystems.net/contact-form-4.0.php. I do get the
emails, it just won&#039;t redirect. I&#039;m just not sure what i&#039;m doing wrong
here. Thanks!!

Mandy</description>
		<content:encoded><![CDATA[<p>Hi Sarah,</p>
<p>I tried to view the source code, but you can&#039;t see the PHP once it gets to<br />
the browser. I pulled the page off of the server and opened it in notepad<br />
and there is nothing before that opening line. I really appreciate your<br />
attention to my issue. If you get a chance, the url is<br />
<a href="http://www.advancedairsystems.net/contact-form-4.0.php" rel="nofollow" class="external">http://www.advancedairsystems......rm-4.0.php</a>. I do get the<br />
emails, it just won&#039;t redirect. I&#039;m just not sure what i&#039;m doing wrong<br />
here. Thanks!!</p>
<p>Mandy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20688</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Thu, 28 Jul 2011 20:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20688</guid>
		<description>Hi Mandy, according to your error there is output of some kind on line 1. This may be a whole blank line, a dot before the opening php tag, just anything. This isn&#039;t a server issue as the error is saying that output has already started.

You need to ensure that nothing at all is before that opening PHP tag. Possibly the upload is somehow corrupting? Can you check it on the server via a control panel file editor? If so I would do that too.

Also, if the error still appears, open up the source code and see what is showing before the PHP error comes up as you may see either a character or space there.</description>
		<content:encoded><![CDATA[<p>Hi Mandy, according to your error there is output of some kind on line 1. This may be a whole blank line, a dot before the opening php tag, just anything. This isn&#039;t a server issue as the error is saying that output has already started.</p>
<p>You need to ensure that nothing at all is before that opening PHP tag. Possibly the upload is somehow corrupting? Can you check it on the server via a control panel file editor? If so I would do that too.</p>
<p>Also, if the error still appears, open up the source code and see what is showing before the PHP error comes up as you may see either a character or space there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandy</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20686</link>
		<dc:creator>Mandy</dc:creator>
		<pubDate>Thu, 28 Jul 2011 20:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20686</guid>
		<description>Maybe it&#039;s a server issue, because I put both versions of your form up, unchanged except for my email, thank you page and subject. They both do the same thing. Strange :/

Thanks for the suggestions!</description>
		<content:encoded><![CDATA[<p>Maybe it&#039;s a server issue, because I put both versions of your form up, unchanged except for my email, thank you page and subject. They both do the same thing. Strange :/</p>
<p>Thanks for the suggestions!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20685</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Thu, 28 Jul 2011 17:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20685</guid>
		<description>Hi Mandy,

You&#039;ll be getting that error if something is being output on the page before all of the PHP processing occurs. So you need to make sure that there is no HTML or whitespace of any kind before the opening PHP tag.

Let me know if that solves your problem :)</description>
		<content:encoded><![CDATA[<p>Hi Mandy,</p>
<p>You&#039;ll be getting that error if something is being output on the page before all of the PHP processing occurs. So you need to make sure that there is no HTML or whitespace of any kind before the opening PHP tag.</p>
<p>Let me know if that solves your problem <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mandy</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-20665</link>
		<dc:creator>Mandy</dc:creator>
		<pubDate>Tue, 26 Jul 2011 17:45:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-20665</guid>
		<description>Hi Sarah,

Thank you for all of your hard work! I am getting this error after submitting: Warning: Cannot modify header information - headers already sent by (output started at /home/content/a/d/v/advanced1720/html/testingform.php:1) in /home/content/a/d/v/advanced1720/html/testingform.php on line 97.

Looks like it has to do with the redirect to the thank you page. Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi Sarah,</p>
<p>Thank you for all of your hard work! I am getting this error after submitting: Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/content/a/d/v/advanced1720/html/testingform.php:1) in /home/content/a/d/v/advanced1720/html/testingform.php on line 97.</p>
<p>Looks like it has to do with the redirect to the thank you page. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah</title>
		<link>http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/comment-page-2/#comment-17560</link>
		<dc:creator>Sarah</dc:creator>
		<pubDate>Fri, 20 Aug 2010 08:13:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.stuffbysarah.net/2008/03/19/secure-php-contact-form/#comment-17560</guid>
		<description>Hi Chris,

Yes you could just add cfsubmit to the end as you suggested.

I keep Remy Sharp&#039;s jQuery API lookup bookmarked and it&#039;s a great way to get a syntax reminder and/or examples - http://remysharp.com/jquery-api/ just look under P and you&#039;ll find examples of the $.post

If you&#039;re using a made up email address then possibly your server is designed to look and see if that email address exists. If you look at my reply to Dustin above (about 2 or 3 comments up) you&#039;ll see my explanation on this. Best option is to use real email addresses, and then if something doesn&#039;t work, look into why. There&#039;s an example in that comment to test your mail() function, if that works then the email should send :)</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>Yes you could just add cfsubmit to the end as you suggested.</p>
<p>I keep Remy Sharp&#039;s jQuery API lookup bookmarked and it&#039;s a great way to get a syntax reminder and/or examples &#8211; <a href="http://remysharp.com/jquery-api/" rel="nofollow" class="external">http://remysharp.com/jquery-api/</a> just look under P and you&#039;ll find examples of the $.post</p>
<p>If you&#039;re using a made up email address then possibly your server is designed to look and see if that email address exists. If you look at my reply to Dustin above (about 2 or 3 comments up) you&#039;ll see my explanation on this. Best option is to use real email addresses, and then if something doesn&#039;t work, look into why. There&#039;s an example in that comment to test your mail() function, if that works then the email should send <img src='http://www.stuffbysarah.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

