[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: ?php $message = ''; # Horribly insecure code for illustrative purposes only: if (isset($name) trim($name)

[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= ; input type=text name=name value=?=$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: ? ... //do your statement to put in the values ?