Radio button how to?
Posted
by Azzyh
on Stack Overflow
See other posts from Stack Overflow
or by Azzyh
Published on 2010-06-13T19:02:28Z
Indexed on
2010/06/13
19:12 UTC
Read the original article
Hit count: 181
php
what i want to do is that when you vote Y or N (two different radio buttons) and then it inserts into the "vote" column(in database) = Y or N(what you pickd), if nothing then echo error.
I know how to do this like halfway, i never worked with radiobuttons before so i need you guys.
Here's a two radio button right:
Yes: <input type="radio" value="Y" id="voteYes" name="vote"></input> <br>
No: <input type="radio" value="N" id="voteNo" name="vote"> </input>
I gave the value N and Y, not the same ID, but the same name. I think its right, but how should i do with the PHP part of what i want to do? I mean shall i call for "vote"? ($_GET["vote"]) i dont think so.. here's where im stuck
© Stack Overflow or respective owner