[請益] radio 輸出的value全都為"on"

看板PHP作者 (天地桑)時間16年前 (2009/12/27 01:50), 編輯推噓1(103)
留言4則, 2人參與, 最新討論串1/1
各位先進~~請問一下 我選radio以後...每個radio的value都不相同 但是我用echo測試 印出來的值都是on 實在不解...相當困惑ˊˋ 也試過echo submit的value 是可以的啊 ================程式碼================================================== <form name="use" method=post > <H2 ALIGN="CENTER">使用者介面</H2> <table align="CENTER" width="366" border="1"> <tr> <th ALIGN="left"><input type="radio" name="goal" value"table" id="table" checked="checked">Table</th> </tr> <tr> <th ALIGN="left"><input type="radio" name="goal" value"record" >Record</th> </tr> <tr> <th ALIGN="left"><input type="radio" name="goal" value"field" >Field</th> </tr> <tr> <td colspan="2" align="RIGHT"><input type="submit" value="確認"></td> </tr> </table> </form> <? echo $_POST["goal"]; ?> 還懇請各位先進能幫我解惑一下... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.230.121.84

12/27 02:31, , 1F
value少了等號嗎?
12/27 02:31, 1F

12/27 02:31, , 2F
radio裡的 value 少了等號 @_@?
12/27 02:31, 2F

12/27 02:34, , 3F
Q_Q...原來 難怪我爬文都沒這個問題>_<" 我想該睡了ˊˋ
12/27 02:34, 3F

12/27 02:34, , 4F
不好意思吶~~看笑話了(揉)
12/27 02:34, 4F
文章代碼(AID): #1BDapb6W (PHP)
文章代碼(AID): #1BDapb6W (PHP)