Re: [問題] 取得名稱
※ 引述《ilnba (Lancelot)》之銘言:
: 小弟目前正在寫有關問卷的問題
: 不過卡在一個點,所以來請問大家一下這要怎樣處理
: 程式碼如下
: response.write objRS("question")&"<br/>"
: response.write"<input type='radio' name='"&objRS("ID")&"'
: value='a'>"&objRS("selecta")
: response.write"<input type='radio' name='"&objRS("ID")&"'
: value='b'>"&objRS("selectb")
: response.write"<input type='radio' name='"&objRS("ID")&"'
: value='c'>"&objRS("selectc")
: response.write"<input type='radio' name='"&objRS("ID")&"'
: value='d'>"&objRS("selectd")&"<br/>"
: 因為我使用資料庫中id這個record當作名稱
: 那傳遞後,請問要怎樣抓到所選的value
: 也就是response.Write request("這裡")要怎樣寫
: 謝謝
<%=objRS("question")%><br/>
<input type='radio' name='<%=objRS("ID")%>' value='a'><%=objRS("selecta")%>
<input type='radio' name='<%=objRS("ID")%>' value='b'><%=objRS("selectb")%>
<input type='radio' name='<%=objRS("ID")%>' value='c'><%=objRS("selectc")%>
<input type='radio' name='<%=objRS("ID")%>' value='d'><%=objRS("selectd")%>
<br/>
是指這個嗎?
還有,感覺這樣寫比較好維護耶
--
有些事情‧因為在意,所以犧牲,所以捨棄,所以保持距離。
http://www.wretch.cc/blog/shiiz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.210.174.21
→
03/30 16:16, , 1F
03/30 16:16, 1F
→
03/31 00:40, , 2F
03/31 00:40, 2F
→
04/13 16:40, , 3F
04/13 16:40, 3F
討論串 (同標題文章)