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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php