i was wondering how you set up your logic to do form handling. i’d also like to mention that i’m using OOP (if that makes a difference)
my problem arises when i’m redirecting and am unable to send over the POST variables that were submitted.
for example, if a user submits a form and misses some required fields, i’d like for the form to redirect back to the original page and display the $_POST variables in the proper field.
however, if the user fills out the form correctly, it’d just direct them to the next page.
what i was thinking was to do the validation on the same page as the form, then if it’s successful insert it into the DB on the same page then refer the user to the next step.
how do you all set this up?
also, is it possible (and if so, how and which tutorials are useful) to following the MVC guide without using any existing frameworks?