<slide title="Testing Values">
  <example title="Check allowable range of numeric values"><![CDATA[if (($_GET['age'] < 13) || ($_GET['age'] > 65)) {...}]]></example>
  <example title="Restrict %&amp;lt;select>% choices to a preset array"><![CDATA[$choices = array(1 => 'Trout', 'Halibut', 'Tilapia');
if (! $choices[$_POST['fish']]) { ... }]]></example>
<example title="Use Regular Expressions"><![CDATA[if (! preg_match('/^\d{5}(-\d{4})?$/', $_POST['zipcode'])) { ... }
if (! preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $_POST['email'])) { ... }]]></example>
</slide>

