Re: register_globals setting

From: Date: Thu, 04 Jan 2001 15:17:53 +0000
Subject: Re: register_globals setting
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-32642@lists.php.net to get a copy of this message
Cynic - If I put this at the top of a page where the value of pu_ssn is passed as either a GET or POST, the Cookie is not set. <? $pu_ssn = $HTTP_GET_VARS[pu_ssn]; setcookie("ssn", $pu_ssn, time() + (60 * 60 * 24 * 30)); ?> I believe that is caused by the fact that there cannot be any PHP code before the "setcookie". Todd -- Todd Cary Ariste Software todd@aristesoftware.com

« previous php.general (#32642) next »