This is a discussion on GET, POST, REQUEST - Which is better? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; It appears that I can use $_REQUEST for everything, but should I be using $_GET and $_POST?...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Fred Bradley wrote :
> It appears that I can use $_REQUEST for everything, but should I be using > $_GET and $_POST? > > Only if you want to specify where you want the data to be received from. And in other case when you get the same variable in two ways (get and post too) |
|
|||
|
Fred Bradley a écrit:
> It appears that I can use $_REQUEST for everything, but should I be using > $_GET and $_POST? When i don't want the visitors to see/modify/play with the script parameters in the browser's address line, i will prefer the POST/$_POST method. Otherwise, the $_REQUEST method is ok. -- __________________________________________________ ____ / <Nanar> quitte vi avec :q! <jipe> c quoi ce smiley ? \ \ #mandrakefr / ------------------------------------------------------ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || |