php radio box values -
Given that to send a value for a php script, while using an HTML radio box, only the selected value The script, which is sent to php, is still true.
Do I still have to see that the user has chosen something, when I am only interested in the selected value, then he is being sent to php script, if the user does not select anything nothing Do or I think I can signal the user to choose something.
If so, what is the best way to relate this radio box?
& lt ;! - By using the radio box, a single selected value is sent to the PHP script for processing - & gt; & Lt; Td width = "100px" height = "30px" & gt; & Lt; Input type = "radio" name = "selection" value = "lease" /> Lease Chips 0.9 9C & lt; Br / & gt; & Lt; Input type = "radio" name = "selection" value = "ruffles" /> Raffles $ 1.85 & lt; Br / & gt;
Users will also be able to click on the "Submit" button without choosing an option. To
If a selection is okay to send some form without any form and you want to isolate something (or ignoring it) when nothing is selected, then you can:
& lt ;? Php if (isset (($ _ POST ['selection']) {// Use it .. and make sure to validate user input.} Else {// none was selected. .oh If you want to stop submitting without any selection, you will need to use some javascript to do this.
Comments
Post a Comment