Php - testing if a radio button is selected and get the value

后端 未结 7 720
温柔的废话
温柔的废话 2020-12-08 12:31

I\'m using php. I\'d like to know how can I test if a radio button is selected and get the value? i can test if the radio button is selected but i cannot get the value. I c

7条回答
  •  星月不相逢
    2020-12-08 13:01

    It's pretty simple, take a look at the code below:

    The form:

    Answer 1
    Answer 2
    Answer 3
    Answer 4

    PHP code:

    
    

提交回复
热议问题