Hello,
I am trying to clear a form after it's information has been submitted into the Database and before it is redirected to a Thank you page. I tried using the onload function to clear the page an it worked but I only want it to clear once it has been submitted not on any other time (such as hitting the back button).(Oh I am using php and javascript). I am wanting this so that once submitted the user information is not visible to anyone. I also want to keep the user from entering in a duplicate record by accidently hitting the submit button. I was wondering if the <?php include("javascript.inc"
;?> would be helpful. Also I was reading something about a Smarty package and was hoping someone can explain to me more about that package. This package has a clear_all_cache function that I though would help me get the result I am wanting.Can someone please give me some advise concerning these issues.
Thanks to everyone in advance!!!!
I am trying to clear a form after it's information has been submitted into the Database and before it is redirected to a Thank you page. I tried using the onload function to clear the page an it worked but I only want it to clear once it has been submitted not on any other time (such as hitting the back button).(Oh I am using php and javascript). I am wanting this so that once submitted the user information is not visible to anyone. I also want to keep the user from entering in a duplicate record by accidently hitting the submit button. I was wondering if the <?php include("javascript.inc"
Thanks to everyone in advance!!!!