关于php中的单选按钮的澄清 [英] Clarification about Radio button in php
本文介绍了关于php中的单选按钮的澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hiii
i有一个表单,其中我有3个同名的单选按钮但是将从mysql数据库中检索到值。但是每个单选按钮都会执行不同的操作。可以告诉我一些方法。
hiii
i have a form within which i have 3 radio button with same name but value will be retrieved from the mysql database.But each radio button will do different actions.can plz suggest me some way.
推荐答案
从中获取值的MySql字段是什么。为了使用不同的值填充所有三个按钮文本,您的数据库中必须有3个字段。是否有一个默认值设置为''checked = checked''?
Ronald:很酷:
What are the fields fromMySql that you get the values from. In order to populate all three button texts with diferent values you''ll have to have 3 fields in your data base. And is there a default value to be set to ''checked=checked''?
Ronald :cool:
我正在检索来自mysql的3个字段(值),为此,我有3个具有相同名称的单选按钮,当我选中时,每个必须执行不同的操作,没有默认检查...但是当我检查时,所有3个单选按钮在做相同的操作,我该怎么检查...
i''m retrieving 3 fields(values) from mysql,for this,i''m having 3 radio buttons having same names,when i checked,each must do different operations,no default checking...but when i check ,all the 3 radio buttons doing same operation,how can i check...
请显示到目前为止这些单选按钮的代码。如果没有看到相关代码,就很难对这个问题做出反应。
罗纳德:很酷:
Please show the code you have until now regarding those radio buttons. It is somewhat difficult to react to this problem without seeing the code involved.
Ronald :cool:
这篇关于关于php中的单选按钮的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文