Re: RE:$_Request from 4.3 to v5.x
| From: | John W. Holmes | Date: | Tue, 13 Jul 2004 15:51:53 +0000 |
| Subject: | Re: RE:$_Request from 4.3 to v5.x | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190365@lists.php.net to get a copy of this message | ||
Dennis Gearon wrote:
Isn't $_REQUEST the same as the old GPC variables in global namespace? A way to get requested variables without paying attention to whether they came in via cookies, post, or get? That's been my understanding so I've been using $_GET, $_POST, $_COOKIE instead, because that way I don't have to worry about GPC order AND I can use GET and POST together at the same time.Yes, you're correct. Personal preference as to what to use, though. I like using $_REQUEST since it doesn't matter what method my forms use and in the end, I really don't care how the user sends me the information since it's all validated anyhow. If you send me the form data through a cookie, who cares, as long as it's correct... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com