如何检查是否已选择单选按钮
问题描述:
如何检查是否已选择单选按钮?我希望能够发布单选按钮的值,具体取决于是否已选择它.
how do i check if a radio button has been selected? I want to be able to post the value of a radio button depending on if it has been selected or not.
答
在这里看看:
http://www.homeandlearn.co.uk/php/php4p10.html [ ^ ]
祝你好运!
Have a look here:
http://www.homeandlearn.co.uk/php/php4p10.html[^]
Good luck!
距离我什至没有看过任何PHP已有很多年了,但是如果我没记错的话,你可以检查一下
It has been many years since I even looked at any PHP but if I recall correctly, you can just check
_POST ["NAME_OF_RADIOBUTTON].如果选择了单选按钮,则应显示该值;如果未选择,则应显示在
_POST["NAME_OF_RADIOBUTTON"]. if the radio button is selected, the value should be present, if it''s not selected, the value in