-rw------- 1 rem user 3470 Nov 26 2010 h3.php ^ ^ Note read permission for group and other is *not* needed! ** Start of listing of h3.php ** PHP Test In PHP, it isn't necessary to do any work to get the GET or POST form contents decoded and separated, because the PHP server does all that work for you, and also collects all cookies your browser has sent to the server, putting each set of key=value pairs in appropriately-named associative arrays:

$_POST = '; print_r($_POST); echo '

$_COOKIE = '; print_r($_COOKIE); ?>

PHP also merges GET, POST and COOKIE data into a single associative array:

$_REQUEST = '; print_r($_REQUEST); ?>

Now this PHP script will show you the values associated with specific keys, and then check which requests you put in the correct places respectively (any request with right keyword but associated with wrong key is ignored).

Value of parameter firstname is
Value of parameter lastname is
Value of parameter square_root_of_2 is

Do you prefer to be addressed this way:
  
or this way:
  
and do you really believe the square root of 2 is exactly

Value of parameter x1 is
Value of parameter x2 is
Value of parameter x3 is

You didn't ask about 'date' this time. To do that, you need to specify a key of x1 with a value containing the text 'date' somewhere in it. In California, current date+time is given by this associative array:

You didn't ask about 'IP' this time. To do that, you need to specify a key of x2 with a value containing the text 'IP' somewhere in it. The IP number is where your client/browser is located.

You didn't ask about 'name' this time. To do that, you need to specify a key of x3 with a value containing the text 'name' somewhere You asked for my name: Robert Elton Maas ** End of listing of h3.php **