I have a form on my website that takes what a user inputs and queries MySQL. Is it best to have the form validation on another page of my site, where I would need to use $_POST to get the inputted info? Or should I be using a function on the same page as the form itself? Or a function on another page? I just want to the best/safest/fastest way this should be done.