RE: [PHP] How to destroy a $variable

From: Date: Sat, 04 Aug 2001 10:59:24 +0000
Subject: RE: [PHP] How to destroy a $variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61231@lists.php.net to get a copy of this message
Gerard, Try using: unset($Age); Jeff > -----Original Message----- > From: Gerard Samuel [mailto:trini0@optonline.net] > Sent: Saturday, August 04, 2001 1:34 AM > To: PHP > Subject: [PHP] How to destroy a $variable > > > Ok I have a form with a $PHP_SELF target, and I enter parts of the form > when they enter information if something is wrong with their input. Now > what I would like to do is destroy all the variables when the form is > correct and posted, so that when the page comes back up again, I post a > thank you message, and the form is blank. Just a thought. > I tried setting strings to empty after data is submitted to the database > like so $Age = ""; etc.... at the bottom of the file. > > Bounce some ideas of me. Thanks > > > -- > 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 (#61231) next »