Hi guys Since i am relatively new to php feel free to call me a fool! But is it possible to self submit a form using php-self, so the information (in this case lots of radio buttons) can be validated on the same page using php and then, if valid data, post the information to a different page? Im trying to resist the urge to use javascript! Cheers in advance Will
Yes. if (isset($_POST["submit"])) { validation code goes here; } else { echo 'form html goes here'; } Code (markup):
You couldn't actually post the data ( well you could, but not easily ) but you can process whatever needs to be done on the same page and redirect the browser ot output instrcutions accordingly.