Re: Re: Best way to test for form submission?

From: Date: Sat, 29 Aug 2009 13:05:50 +0000
Subject: Re: Re: Best way to test for form submission?
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-297472@lists.php.net to get a copy of this message
At 5:33 PM +0100 8/28/09, Ashley Sheridan wrote:
On Fri, 2009-08-28 at 12:28 -0400, tedd wrote: Ash:
What catches me every once in a while is using variable names that are the same as $_SESSION indexes, such as:
     $session_name =  $_SESSION['session_name'];
Believe it or not, that does NOT always work! Sometimes I have to do this --
     $my_session_name =  $_SESSION['session_name'];
-- to get around the problem. I have experienced this error more than once -- it's strange. Cheers, tedd
Does that happen even with register globals off?
Yes. it happens with register globals set to off Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#297472) next »