For ‘selections’ like drop down and radio group, use an appropriate validation like ‘dontselect’ or ‘selone_radio’.
This validation descriptor is valid only for drop down lists.
Radio buttons are implemented as if they were an array of checkboxes.
To find out which value (if any) has been selected, you need to loop through the array until you find which one has been selected: In the case of a single radio button we have nothing to loop through so just return either it's value, if the radio button is checked, or false.
When form input is important, it should always be verified using a secure server-side script.
I've coded a working form, all checks are great but for some reason the hardest part is trying to stop form submission before validation.
So i have places to insert the stop validation code, but just cant find any that works.
In other words if the first condition fails, the second condition will not be tested and so forth.
Only when all conditions have been satisfied do we reach the command, in which case the form will be submitted.