Issue
How to know the value of clicked button
<input type="radio" name="radio">Yes<br>
<input type="radio" name="radio">No
php part
$option1= $_POST['radio'];
When i echo it it always say's "ON".
Solution
You need to give a value
attribute:
<input type="radio" name="radio" value="yes">Yes<br>
<input type="radio" name="radio" value="no">No
Answered By - Barmar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.