Do you post the form to the same file
Code: Select all
action=""Code: Select all
action="/actions/registrations/"Posting forms to another directory just makes more sense to me, however I haven't found a reliable way to handle errors and displaying them back out to the user. A co-worker of mine likes to post his forms to an /actions/ dir, test for errors and build a GET string containing any messages to display back to the requesting file, like so
Code: Select all
if( $error ){ header("Location: /sign-up/index.php?error=Your_password_must_contain_a_number")Any help on this issue would be appreciated. Want I want to do is, POST a form to an /actions/ directory and redirect the user back to the page he came from with any accompanying messages or errors that I want to display without uglifying the URL.
-Ciao