<?php
// Slightly more advanced examples of use
require "request.class.php";
$request = new request();
$name = $request->get_clean_string("name"); // Get the variable "name" without extra whitespace from the $_REQUEST array as a string, or "" if it doesn't exist.
echo "Your age is ".$request->get_html_string("age"); // Get the variable "age" as an HTML-safe value from the $_REQUEST array as a string, or "" if it doesn't exist.
?>
|