[請益] radio box如何寫入資料庫?

看板PHP作者 (很愛打網球)時間14年前 (2011/07/27 09:48), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
我的rodio button如下 <td height="30px" colspan="2"><img src="test.gif" width="5" height="8" style="padding-right:10px" />哪種方式?</td> </tr> <tr> <td height="30px"></td> <td><input name="button" type="radio" value="" /> 是的。</td> </tr> <tr> <td height="30px"></td> <td height="30px"><label> <input type="radio" name="button" id="radio" value="" /> </label> 不要。</td> </tr> 要如何用post寫入資料庫? 還是說在radio button的每個選項都給不同的name 判斷是否為true 是的話才寫進資料庫 ? 請前輩們幫忙一下吧! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.146.108.21 ※ 編輯: stony1990 來自: 122.146.108.21 (07/27 09:52)
文章代碼(AID): #1EBsvIOC (PHP)
文章代碼(AID): #1EBsvIOC (PHP)