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)? Quote Link to comment 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. Quote Link to comment 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 :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.