This post is directed at anyone that uses form validation, specifically having the form submit to itself to validate before going to the next page. In this case, I've found that you have to put value="<?php echo $_POST['var]; ?> in every single form field so that if the form does not validate, all the values are still saved and the user does not have to re-enter all their information.
Now I don't mind going through all my pages and adding this line by line, but does anyone know of a way in which you might just echo all the values on the form, including things like checkboxes, with just a few simple lines of code? An idea that i had was naming the form and then setting the value of the form to the same as above using that name. That was unsuccessful.
I'm thinking something like a loop with a key => value system but my knowledge of those setups isn't vast enough to figure out what it is i need to do, if what i need to do is even possible.
Please give me your ideas 🙂