RE: [PHP] Deleting session vars

From: Date: Tue, 31 Oct 2000 14:32:59 +0000
Subject: RE: [PHP] Deleting session vars
Groups: php.general 
Request: Send a blank email to php-general+get-22939@lists.php.net to get a copy of this message
yes the session variable overrules the variable you submitted through your form. take a look at $HTTP_POST_VARS["a"] instead :) $HTTP_POST_VARS["a"] will return 'tom' while $a will return 'jerry'. dowebwedo Jeroen Wesbeek .programming St. Jacobsstraat 16 Postbus 448 | 3500 AK Utrecht The Netherlands p 030 2348110 | f 030 2348605 [roses are red, violets are blue, I am schizophrenic and so am I ] -----Original Message----- From: Boris.C [mailto:crismancich@wettermacher.de] Sent: dinsdag 31 oktober 2000 11:45 To: php-general@lists.php.net Subject: Re: [PHP] Deleting session vars Hmm... Page 1 submittet with <input type="text" name="name" value="jerry"> looks like ______________________ session_start(); session_register ("a"); echo $name; $a = $name; ______________________ Now the user surfs trough different pages and comes to this site again Page 1 now submittet with <input type="text" name="name" value="tom"> ______________________ session_start(); session_register ("a"); echo $name; $a = $name; ______________________ prints out "jerry" instead of tom. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#22939) next »