Validating Data
2/15
Topics
Testing Values
•
Turn off
register_globals
and rely on
$_GET
,
$_POST
,
$_COOKIE
, and
$_REQUEST
•
Test submitted data for expected syntax:
if (is_numeric($_POST['age'])) { ... }
if (strlen(trim($_GET['address']))) { ... }