Re: notice and warning
- From: "Barry" <no.one@xxxxxxxxxxx>
- Date: Wed, 16 Jul 2008 17:22:10 -0500
"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.
.
- Follow-Ups:
- Re: notice and warning
- From: Erwin Moller
- Re: notice and warning
- References:
- notice and warning
- From: Jeff
- Re: notice and warning
- From: Erwin Moller
- notice and warning
- Prev by Date: Re: Mysqli problems
- Next by Date: Good Price !! chloe prada lv hermes guess jimmy choo bcbg handbags for sale
- Previous by thread: Re: notice and warning
- Next by thread: Re: notice and warning
- Index(es):
Relevant Pages
|