<?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"
	>
<channel>
	<title>Comments on: Filtering User Input in PHP</title>
	<atom:link href="http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/</link>
	<description>A fresh look at Design, SEO, CSS &#38; Programming</description>
	<pubDate>Mon, 06 Sep 2010 16:29:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Michael</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-10182</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Sat, 28 Nov 2009 15:09:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-10182</guid>
		<description>Nice class, but wondered about one thing. If/when the filter finds input data that breaks the filter rules, how would you go about displaying a warning to the user that their data has issues and won't be accepted? This would be great if it could appear on the actual form page before getting to the input process on another page.</description>
		<content:encoded><![CDATA[<p>Nice class, but wondered about one thing. If/when the filter finds input data that breaks the filter rules, how would you go about displaying a warning to the user that their data has issues and won&#8217;t be accepted? This would be great if it could appear on the actual form page before getting to the input process on another page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dreamMonkey</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-4229</link>
		<dc:creator>dreamMonkey</dc:creator>
		<pubDate>Sat, 28 Mar 2009 20:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-4229</guid>
		<description>&lt;blockquote cite=" I use a much more complicated version in many of my projects that include e-mail validation, verification and more (I would be happy to share some of these with anyone interested - just drop me a comment)."&gt;

Hi Regan,

first of : great site ! Just what I was looking for ! 
I am currently trying to rebuild someone's website that we believe fell victim to malicious practices you are trying to protect us from. I really want to make it as strong as possible that 's why I was wondering what more methods one could us in the class to make it as solid as a rock?

PS: I'm very interested in the MySQL protection update as well !

regards,
dreamMonkey</description>
		<content:encoded><![CDATA[<blockquote cite=" I use a much more complicated version in many of my projects that include e-mail validation, verification and more (I would be happy to share some of these with anyone interested - just drop me a comment).">
<p>Hi Regan,</p>
<p>first of : great site ! Just what I was looking for !<br />
I am currently trying to rebuild someone&#8217;s website that we believe fell victim to malicious practices you are trying to protect us from. I really want to make it as strong as possible that &#8217;s why I was wondering what more methods one could us in the class to make it as solid as a rock?</p>
<p>PS: I&#8217;m very interested in the MySQL protection update as well !</p>
<p>regards,<br />
dreamMonkey</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert K</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-4067</link>
		<dc:creator>Robert K</dc:creator>
		<pubDate>Thu, 19 Mar 2009 13:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-4067</guid>
		<description>retrun preg_replace 
is supposed to be
return preg_replace 
I assume :)</description>
		<content:encoded><![CDATA[<p>retrun preg_replace<br />
is supposed to be<br />
return preg_replace<br />
I assume <img src='http://www.soaptray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Augustin</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-894</link>
		<dc:creator>Robert Augustin</dc:creator>
		<pubDate>Mon, 08 Sep 2008 21:22:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-894</guid>
		<description>Regan,

&lt;blockquote&gt;...which is anything more that 1 space...&lt;/blockquote&gt;

That's it :)

Thanks!</description>
		<content:encoded><![CDATA[<p>Regan,</p>
<blockquote><p>&#8230;which is anything more that 1 space&#8230;</p></blockquote>
<p>That&#8217;s it <img src='http://www.soaptray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Regan Johnson</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-891</link>
		<dc:creator>Regan Johnson</dc:creator>
		<pubDate>Mon, 08 Sep 2008 18:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-891</guid>
		<description>&lt;blockquote&gt;Robert Augustin said: Hi Regan,

I just came across your site and I already love it. Thanks for this post in particular - I'm ...&lt;/blockquote&gt;

Hey there Robert,

Thanks for the comment. The function I am using in this example will eliminate whitespace (which is anything more that 1 space). This is particularly useful when people try to enter something with an exorbitant amount of spaces in between words, and will clean up the input passed to your application.

Hope this helps!</description>
		<content:encoded><![CDATA[<blockquote><p>Robert Augustin said: Hi Regan,</p>
<p>I just came across your site and I already love it. Thanks for this post in particular - I&#8217;m &#8230;</p></blockquote>
<p>Hey there Robert,</p>
<p>Thanks for the comment. The function I am using in this example will eliminate whitespace (which is anything more that 1 space). This is particularly useful when people try to enter something with an exorbitant amount of spaces in between words, and will clean up the input passed to your application.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Augustin</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-890</link>
		<dc:creator>Robert Augustin</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-890</guid>
		<description>Hi Regan,

I just came across your site and I already love it. Thanks for this post in particular - I'm no pro at PHP just yet and this kind of info is great!

Question - why strip user input from whitespaces? As an example, let's say it's a contact form using a textarea for a message, the contact.php (form) posts to formmailer.php (script), which checks for sanity, empty fields and email validity and on error, returns to contact.php with a conditional DIV displaying the error message (so far so good).

Why eliminate all whitespaces? User's message would be unreadable in this case.

Or am I getting it wrong :)</description>
		<content:encoded><![CDATA[<p>Hi Regan,</p>
<p>I just came across your site and I already love it. Thanks for this post in particular - I&#8217;m no pro at PHP just yet and this kind of info is great!</p>
<p>Question - why strip user input from whitespaces? As an example, let&#8217;s say it&#8217;s a contact form using a textarea for a message, the contact.php (form) posts to formmailer.php (script), which checks for sanity, empty fields and email validity and on error, returns to contact.php with a conditional DIV displaying the error message (so far so good).</p>
<p>Why eliminate all whitespaces? User&#8217;s message would be unreadable in this case.</p>
<p>Or am I getting it wrong <img src='http://www.soaptray.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Missfitbit</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-601</link>
		<dc:creator>Missfitbit</dc:creator>
		<pubDate>Fri, 22 Aug 2008 22:37:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-601</guid>
		<description>Ok, just learning (stop groaning), so a little help would be awesome. 

Building a site whose main function will be compiling blurbs about events (etc) that will also be e-mailed to subscribers. So, obviously, I need to collect e-mail addresses, send html emails to my users, and allow users to remove their address. Yep, there are a TON of third parties that will do this for you, but i want to own and have total control over my data, plus it's just fun to learn. I just don't want to have my subscribers be overrun with spam et al. because I didn't know enough. So...

I'm going to use everything on this page, but you mentioned you'd send more info on e-mail validation, verification, etc, so could you? 

Any other tips or resources? (Besides "hire someone") ;-) 

Thanks a MILLION!</description>
		<content:encoded><![CDATA[<p>Ok, just learning (stop groaning), so a little help would be awesome. </p>
<p>Building a site whose main function will be compiling blurbs about events (etc) that will also be e-mailed to subscribers. So, obviously, I need to collect e-mail addresses, send html emails to my users, and allow users to remove their address. Yep, there are a TON of third parties that will do this for you, but i want to own and have total control over my data, plus it&#8217;s just fun to learn. I just don&#8217;t want to have my subscribers be overrun with spam et al. because I didn&#8217;t know enough. So&#8230;</p>
<p>I&#8217;m going to use everything on this page, but you mentioned you&#8217;d send more info on e-mail validation, verification, etc, so could you? </p>
<p>Any other tips or resources? (Besides &#8220;hire someone&#8221;) <img src='http://www.soaptray.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Thanks a MILLION!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stilegrafica Design Blog &#187; Blog Archive &#187; 5 script PHP che forse non conoscevi</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-168</link>
		<dc:creator>Stilegrafica Design Blog &#187; Blog Archive &#187; 5 script PHP che forse non conoscevi</dc:creator>
		<pubDate>Fri, 27 Jun 2008 02:40:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-168</guid>
		<description>[...] Filtrare l’input utente con PHP [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Filtrare l’input utente con PHP [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SEO Ranter</title>
		<link>http://www.soaptray.com/blog/2008/04/filtering-user-input-in-php/#comment-33</link>
		<dc:creator>SEO Ranter</dc:creator>
		<pubDate>Fri, 11 Apr 2008 13:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.soaptray.com/?p=11#comment-33</guid>
		<description>Can someone please forward this over to Wordpress? ;)

http://search.securityfocus.com/swsearch?query=wordpress&#38;metaname=alldoc</description>
		<content:encoded><![CDATA[<p>Can someone please forward this over to Wordpress? <img src='http://www.soaptray.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://search.securityfocus.com/swsearch?query=wordpress&amp;metaname=alldoc" rel="nofollow">http://search.securityfocus.com/swsearch?query=wordpress&amp;metaname=alldoc</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
