Re: How to destroy a $variable

From: Date: Sat, 04 Aug 2001 10:09:31 +0000
Subject: Re: How to destroy a $variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61228@lists.php.net to get a copy of this message
Hello Gerard, Saturday, August 04, 2001, 7:34:06 AM, you wrote: GS> Ok I have a form with a $PHP_SELF target, and I enter parts of the form GS> when they enter information if something is wrong with their input. Now GS> what I would like to do is destroy all the variables when the form is GS> correct and posted, so that when the page comes back up again, I post a GS> thank you message, and the form is blank. Just a thought. GS> I tried setting strings to empty after data is submitted to the database GS> like so $Age = ""; etc.... at the bottom of the file. GS> Bounce some ideas of me. Thanks you can destroy variable with unset function. Manual is on php.net page. Or simple do not send this variable to next page I hope it helps -- Best regards, Daniel mailto:daniel@rezny.sk

« previous php.general (#61228) next »