鉴于使用html单选框时,要将值发送到php脚本,只有选定的值被发送到php脚本,但仍然成立。php单选框值
我是否还需要检查用户选择了什么,当我只对发送给php脚本的选定值感兴趣时,如果用户没有选择任何我们什么也不做的东西,或者我猜我可以提示用户选择一些东西。
如果是这样,最好的方式来处理这个问题与无线电盒?
<!--Using the radio box, a single selected value is sent to the php script for processing-->
<td width="100px" height="30px">
<input type = "radio"
name = "selection"
value = "Lays" />Lays Chips 0.99c<br />
<input type = "radio"
name = "selection"
value = "Ruffles" />Ruffles $1.85<br />
谢谢你,卡洛斯利马。 – Newb 2009-12-05 10:27:00
我很乐意提供帮助! :) – 2009-12-05 10:34:13