using _POST and _GET

A

Anonymous

Guest
Anyone knows if there are any drawbacks to using _POST and _GET to get form variables?
 
No, there aren't any. You should always use the superglobals $_POST and $_GET. The only possible exception is if you're not sure if the data will be coming via POST or GET (though I can't think of a situation in which this would be the case), in which case you should use $_REQUEST instead.
 
Back
Top