
January 26th, 2011, 08:25 AM
|
 |
Contributing User
|
|
Join Date: Feb 2006
Location: Somewhere in England
|
|
Quote: | Originally Posted by Northie PHP hasn't always had $_GET and $_POST
It used to be $_REQUEST
and there was a precedence order as to what you would get in $_REQUEST['foo'] if a varibale called foo was sent in both get and post parts of the request.
Given that get and post are semantically different, it makes sense to a developer to know which method was used to send the data to the script, so you would look for the request method to choose what you wanted to do with the data.
Basically, it's code from php versions < 4 |
thanks for the information on the above 2 helped alot
|