Re: [PHP] How to destroy a $variable
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, Danielmailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to destroy a $variable
Gerard, Try using: unset($Age); Jeff -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]