Re: notice and warning




"Erwin Moller"
<Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> wrote in
message news:487e1e6b$0$14347$e4fe514c@xxxxxxxxxxxxxxxxx
Jeff schreef:

<snip>

Don't use $_REQUEST[].
Use $_POST or $_GET or $_COOKIE or whatever you need, but don't use
$_REQUEST.
Doing so means you don't know where your data comes from.
(Some people, like me, think it should never have been added to the
language.)

what's wrong with $_REQUEST, erwin? i use it as standard practice. i have
the order set in the php.ini to my liking - it happens to be the default. if
i need to get fussy where my data is coming from, then i specifically use
the one i need, i.e. $_POST/GET/COOKIE et. al.. using $_REQUEST scales
better also since you may change your implementation on how the script is
being called/used. being specific when not needed means you'll have to
re-write that portion of the script...not so with $_REQUEST.

just wondering what your reasoning is.


.



Relevant Pages