[PHP] Re: How to destroy a $variable

2001-08-08 Thread Richard Lynch

Don't set them to empty at the bottom of the file.  Do it right after the
INSERT to the database, and put the FORM below that.

An unfair restaurant-recommendation script:

\n";
}
else{
$name = '';
}
?>




--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Gerard Samuel <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP <[EMAIL PROTECTED]>
Sent: Saturday, August 04, 2001 12:34 AM
Subject: 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] Re: How to destroy a $variable

2001-08-04 Thread James Tan

hi gerald,

ok.. u could assign values to form input...
eg:
$myname=  "";

>

ok..
for the thank you?
simply do a if syntax to check if it's been submited... and put in a alert
for ur javascript..

eg:


...



alert("thank you for your submittion..." ) ;



hope it works :)



Gerard Samuel wrote:

> 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 Rules---
James Tan
Web programmer(php, c/c++, asp)
Irc: Unknown007(dalnet)
Country: Malaysia
Clients List:
http://www.ogaya.com
http://www.tahbauto.com
http://www.aseanvalues.com
http://www.e-cpo.com
http://your_own_portal?



-- 
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]