<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 09:06:13 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NETTUTS.com: Sanitize and Validate Data with PHP Filters]]></title>
      <guid>http://www.phpdeveloper.org/news/11751</guid>
      <link>http://www.phpdeveloper.org/news/11751</link>
      <description><![CDATA[<p>
On the NETTUTS.com website today there's a <a href="http://nettuts.com/tutorials/php/sanitize-and-validate-data-with-php-filters/">new tutorial</a> looking at a very important (but often forgotten) part of any good web application - sanitizing and filtering data.
</p>
<blockquote>
Data validation is an integral part of working with forms. Not only can invalid submitted data lead to security problems, but it can also break your webpage. Today, we'll take a look at how to remove illegal characters and validate data by using the "filter_var" function.
</blockquote>
<p>
Using <a href="http://php.net/filter_var">filter_var</a> they create a simple form with email and URL input fields. Their script runs these through the FILTER_SANITIZE_EMAIL and FILTER_SANITIZE_URL respectively to see if they are valid. Later they add on a name and message field to make it into an email form (performing the checks on these with the FILTER_SANITIZE_STRING).
</p>
<p>
A <a href="http://nettuts.s3.amazonaws.com/179_dataValidation/Source%20Files.zip">link to download the source</a> is also included.
</p>]]></description>
      <pubDate>Fri, 16 Jan 2009 08:43:16 -0600</pubDate>
    </item>
  </channel>
</rss>
