|
![](/images/resource/spacer.gif) |
|
รบกวนขอถาม การเก็บค่า checkbox ลงdatabase ทำอย่างไรค่ะ |
|
![](/images/resource/viewboard_01.gif?v=1001) |
|
|
![](/images/resource/viewboard_03.gif?v=1001) |
![](/images/resource/viewboard_04.gif?v=1001) |
|
ดูตัวอย่างนี้นะครับ
<% mystring = "1,2,3,4,5" %>
<% myarray = Split(mystring, ",") %>
<%
For n=0 to UBound(myarray)
xmyarray=myarray
Response.write myarray(n)
Response.write("<br>")
Next
%>
ถ้าแบบนี้ Out put จะได้
ตำแหน่ง array(0)=1
ตำแหน่ง array(1)=2
ตำแหน่ง array(2)=3
ตำแหน่ง array(3)=4
ตำแหน่ง array(4)=5
ให้คุณนำค่านี้ไปใช้งานได้ครับ
ถ้าประยุกต์ใช้กับ From
<% mystring = Request.Form("ตัวแปร check box") %>
|
![](/images/resource/blockviewtopic_01.gif?v=1001) |
![](/images/resource/blockviewtopic_02.gif?v=1001) |
![](/images/resource/blockviewtopic_03.gif?v=1001) |
![](/images/resource/blockviewtopic_04.gif?v=1001) |
Date :
18 Jan 2547 01:12:12 |
By :
webmaster |
|
![](/images/resource/blockviewtopic_06.gif?v=1001) |
![](/images/resource/blockviewtopic_07.gif?v=1001) |
![](/images/resource/blockviewtopic_08.gif?v=1001) |
![](/images/resource/blockviewtopic_09.gif?v=1001) |
|
|
![](/images/resource/viewboard_06.gif?v=1001) |
![](/images/resource/viewboard_07.gif?v=1001) |
|
![](/images/resource/viewboard_08.jpg?v=1001) |
![](/images/resource/viewboard_09.gif?v=1001) |
|
|
Load balance : Server 04
|