RE: [PHP] Error Handling
| From: | Jay Blanchard | Date: | Fri, 17 Oct 2003 20:32:10 +0000 |
| Subject: | RE: [PHP] Error Handling | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166549@lists.php.net to get a copy of this message | ||
[snip]
I have found some great code that handles errors through
PHP_SELF
However I have radio buttons and drop down selections that I
cannot do a $_POST (the POST only works on my text fields).
Does someone have some sample code that can check for errors on
a drop down selection or radio buttons and then post the
selection back to the form if the form is not complet?
[/snip]
The post should work on any submitted field. print_r($_POST) and you
should see all of the name/value pairs in the array, including drop
downs and radio buttons where nothing was selected.