$_SERVER$_POST$_GET
DOCUMENT_ROOT:  /var/local/www/htdocs
HTTP_ACCEPT:  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING:  x-gzip, gzip, deflate
HTTP_ACCEPT_LANGUAGE:  en-us,en-gb,en;q=0.7,*;q=0.3
HTTP_HOST:  www-scf.usc.edu
HTTP_USER_AGENT:  CCBot/2.0 (http://commoncrawl.org/faq/)
PATH:  /sbin:/usr/bin:/usr/bin:/usr/sbin
REMOTE_ADDR:  54.81.92.174
REMOTE_PORT:  43460
SCRIPT_FILENAME:  /home/scf-22/csci571/public_html/Special/php_ex/show_vars.php
SCRIPT_URI:  http://www-scf.usc.edu/~csci571/Special/php_ex/show_vars.php
SCRIPT_URL:  /~csci571/Special/php_ex/show_vars.php
SERVER_ADDR:  128.125.253.183
SERVER_ADMIN:  webadm@usc.edu
SERVER_NAME:  www-scf.usc.edu
SERVER_PORT:  80
SERVER_SIGNATURE:  
Apache/1.3.31 Server at www-scf.usc.edu Port 80

SERVER_SOFTWARE:  Apache/1.3.31 (Unix) PHP/4.3.9 mod_layout/3.0.3
UNIQUE_ID:  VHT9U0S1yRcAACp6bIE
GATEWAY_INTERFACE:  CGI/1.1
SERVER_PROTOCOL:  HTTP/1.0
REQUEST_METHOD:  GET
QUERY_STRING:  
REQUEST_URI:  /~csci571/Special/php_ex/show_vars.php
SCRIPT_NAME:  /~csci571/Special/php_ex/show_vars.php
PATH_TRANSLATED:  /home/scf-22/csci571/public_html/Special/php_ex/show_vars.php
PHP_SELF:  /~csci571/Special/php_ex/show_vars.php
argv:  Array
empty
argc:  0
empty
empty

Handling Arrays

PHP also accepts multidimensional arrays as an form input. To create an array, add brackets to end of the name variable. (e.g. time[]). For example, if there is an input named time[], it would be inputted into the time[] array in PHP.