通过php,javascript和html在数据库中插入单选按钮的值 [英] insert value of radio button in database through php,javascript and html
本文介绍了通过php,javascript和html在数据库中插入单选按钮的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用Html创建了两个值为yes和no的单选按钮.我的代码是
i have created two radio buttons having value yes and no using Html.my code is
<table><tbody><tr><td width="150"><input type="radio" id="radio3" name="cdplayer" checked/>Yes</td></tr></tbody></table>
<table><tbody><tr><td width="150"><input type="radio" id="radio4" name="cdplayer"/>No</td></tr></tbody></table>
请帮助我,如何在数据库中存储谷歌是或否
please help me, how can store vale yes or no in database
推荐答案
您的UI设计很奇怪-有两个表来显示两个单选按钮.
查看这些有关如何设计并将其传递到服务器的信息:
从PHP中的MySQL单选按钮插入值 [ ^ ]
PHP教程:单选按钮 [
Your UI design is pretty odd - having two tables to show the two radio buttons.
Look at these on how to design and pass it on to server:
Insert Value From Radio Button in MySQL in PHP[^]
PHP Tutorials: Radio Buttons[^]
Try out!
这篇关于通过php,javascript和html在数据库中插入单选按钮的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文