Jaguar Posted January 24, 2007 Share Posted January 24, 2007 I have a form, form.php. The form submits to process.php in an attempt to stop duplicate records on refresh. process.php checks for errors, builds an error message, and then forwards back to form.php (using header("Location:")). I'm using sessions to pass the error message. Should I be using cookies or is there better way to pass the message (other than GET)? Link to comment https://forums.phpfreaks.com/topic/35530-is-this-an-acceptable-way-to-handle-a-form/ Share on other sites More sharing options...
Jessica Posted January 24, 2007 Share Posted January 24, 2007 IMO: Session is the best way in this case. You can also pass the form values back in the session to repopulate the form with the OK data. Link to comment https://forums.phpfreaks.com/topic/35530-is-this-an-acceptable-way-to-handle-a-form/#findComment-168197 Share on other sites More sharing options...
Jaguar Posted January 24, 2007 Author Share Posted January 24, 2007 Forgot to mention that too. I am passing the form data back using sessions so the user doesn't have to retype everything. Thanks :) Link to comment https://forums.phpfreaks.com/topic/35530-is-this-an-acceptable-way-to-handle-a-form/#findComment-168203 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.