Archive for category Code

PHP Code to Select an Option After a Form Post

I have a couple of php pages with $_POST[] forms which I validate (using PHP). If the form fails validation (ie, the user fails to enter an email address), then the user is brought back to the same page, where he is asked to re-submit the missing or incorrect information. The form also has radio buttons and drop-down forms, and I don’t want to make the user re-select those radio buttons or drop-down entries. So this is my solution: Read the rest of this entry »

No Comments