Stuck on this bit of PHP

Technically they are for session data. Data you wish to remain valid for the current session - which caters for cross-script transmission/transfer in many scenarios. GET is for "getting" and POST for "putting."
 
robmiller said:
You can pass arrays in the query string.

foo.php?foo[]=one&foo[]=two&foo[]=three

Code:
echo $_GET['foo'][2]; // prints "two"

It would print "three", probably an accident on your part. :P
 
Back
Top Bottom