Form self-validation and submission
Posted on 2000-05-12
This is a fairly common question that I have never been able to find a good answer for. What I want to create is a series of forms that validate themselves, and if the information contained in them is correct, write to my database and go to the next form in a series. I can do this if I write the page as one big .php3 file and use $PHP_SELF as the form action, but I want to break it up among several pages. How can I get the form to redisplay if it hits a flag that the page is incorrect, and go to the next page if the info is valid? Thanks guys.