Jump to content

[SOLVED] How to End Form Processing on Success


webref.eu

Recommended Posts

Hi All

 

I have a form that takes user input and posts back to itself.  Once the form input has been validated, it inserts the data into my database.  At this point I effectively want to stop the script running, and show a msg that says "Thanks for your input".  At the moment, even after the validation and insert has been done, the form is incorrectly displayed again, just because the page is posting back and the form html appears at the bottom of the page. 

 

So, what's the best way to interrupt processing and display the user msg? 

 

I tried using a statement like: 

 

header("Location: $newpage");

 

but it didn't like that. 

 

Thanks All.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.