<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'clean user input data ( GET, POST, COOKIE )'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 10:50:30 GMT</pubDate>
<item>
<title>jcrooke said on 8/5/09</title>
<link>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</link>
<description><![CDATA[ sorry, that should have read;

<input type="checkbox" name="fruits[]" value="orange" /> Orange 
<input type="checkbox" name="fruits[]" value="lemon" /> Lemon
<input type="checkbox" name="fruits[]" value="pear" /> Pear 

The tags were stripped ]]></description>
<pubDate>Wed, 05 Aug 2009 06:43:19 GMT</pubDate>
<guid>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</guid>
</item>
<item>
<title>jcrooke said on 8/5/09</title>
<link>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</link>
<description><![CDATA[ This won't work if you use arrays in your forms, i.e.;

 Orange 
 Lemon
 Pear

You need to introduce a line to check if the $value is an array, e.g;

if(is_array($value)) ]]></description>
<pubDate>Wed, 05 Aug 2009 06:42:31 GMT</pubDate>
<guid>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</guid>
</item>
<item>
<title>oakim said on 7/6/09</title>
<link>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</link>
<description><![CDATA[ What do the extract rows do? ]]></description>
<pubDate>Mon, 06 Jul 2009 18:32:55 GMT</pubDate>
<guid>http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/</guid>
</item>
</channel>
</rss>