单选按钮页面传值问题?PHP
如题,例如:index.php页<inputname="od[freight]"type="radio"value="{$glist.freight1}"/>平邮&nbs...
如题,例如:
index.php页
<input name="od[freight]" type="radio" value="{$glist.freight1}"/>平邮
<input name="od[freight]" type="radio" value="{$glist.freight2}" checked="checked" />快递
<input name="od[freight]" type="radio" value="{$glist.freight3}" />EMS
<input name="od[freight]" type="radio" value="{$glist.freight4}" />同城快递
另一页do.php
如何能取到所选按钮的值的同时判断其是平邮、快递、EMS或者同城快递?
上面例子是用smarty模板化了 展开
index.php页
<input name="od[freight]" type="radio" value="{$glist.freight1}"/>平邮
<input name="od[freight]" type="radio" value="{$glist.freight2}" checked="checked" />快递
<input name="od[freight]" type="radio" value="{$glist.freight3}" />EMS
<input name="od[freight]" type="radio" value="{$glist.freight4}" />同城快递
另一页do.php
如何能取到所选按钮的值的同时判断其是平邮、快递、EMS或者同城快递?
上面例子是用smarty模板化了 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询