[請益] radio box如何寫入資料庫?
我的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)
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
154
159