Accessing Post / Get Data

You may be used to using PHP's built in global accessors to get at url and form variables. Maybe something like this:

  $page = $_GET["page"];
  $name = $_POST["name"];

Whilst this is simple enough to use, if you subsequently want to output these values in your HTML you're opening yourself up to security vulnerabilities.

PHP-Wax provides a couple of helper methods that will take care of sanitising these values, and they're also shorter to type.

The helpers

$page = get("page");
$name = post("name");