Hello all!
I got a question i am maken a page that will check a form for the correct data. what would be the best way to check this. i have a class called checkPage to check all the differnt forms. now what i need to do is if the feilds have no error i want it to load a thank you for register page. i dont need code just idea of how the best way to set this up if you have code that would be greatly thank ful..
the very basic idea (in pseudo-code)
<?php if (form has not been submitted) { display the form } else { if (there are errors) { display a warning display the form } else { display "thank you" } } ?>
THat what i was think but how do you know if the forum was submited. i use function to check all the fields and echo a missing fields on the top of the forum.
Originally posted by Vbabiy THat what i was think but how do you know if the forum was submited.
if (!isset($_POST['submit'])) { // the form has not been submit } else { // the form has been submit }
But i am submiting the forum to be check for the required fields so not sure how that would work.. But i could be wrong.