Re: register_globals setting

From: Date: Thu, 04 Jan 2001 14:34:04 +0000
Subject: Re: register_globals setting
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32636@lists.php.net to get a copy of this message
Phil - My question is whether there is a "preferred way" by the folks on this list. One of my problems has to do with setting a Cookie. If I pass a variable to a page (GET or POST) and I want to save it to a Cookie at the top of the page, it appears that I cannot do it if my first line is $myvar = $HTTP_POST_VARS[myvar]; Then setcookie("myvar", $myvar); I have always had register_globals turned off, but I may have to turn it on if I want to set a cookie like in the above example. But do understand that I have not tried PHP with register_globals turned ON. Todd -- Todd Cary Ariste Software todd@aristesoftware.com

« previous php.general (#32636) next »