snowboardr,
I have tried your way yet but How do I get the strChecked or strUnChecked?
<%Do While NOT RsData.EOF%>
<tr>
<td><input type="hidden"
<td>Status<input type="checkbox" name="chkStatus"...
Since you change the checkbox name to
chkStatus<%=rs("ID")%>
The For loop need to change to:
For i=1 to Request("chkStatus<%=RsData("TaskID")%>").count
but it gave me syntax error
Actually, I use this to update:
for i=1 to request("chkStatus").count
SQL="Update Table Set Status = " & CInt(Request("chkStatus")(i)) & " Where ID = " & CInt(Request("txtID")(i))
cn.execute mysql
Select * from Table where Status = 0
Items to be displayed:
ID Status
55 0
68 0
77 0
The IDs are displayed in as lable, Status as checkboxes.
User can update the table by checking the box.
Yes, the value of status is o 0r 1 in the table. However, my SQL statement only those that have Status = 0 to display.
SQL="Select from Table where Status=0"
Let say it returns 10 records. Now user check 5 of them. The Update statement should update the right 5 records. Right now, it...
The values of all the checkboxes when the form is load are zeros. If the a box is check, how can I change its value to zero?
<%Do While NOT RsData.EOF%>
<tr><td>Status<input type="checkbox" name="chkStatus" value=0>
<%RsData.MoveNext
Loop%>
Thanks for all the inputs.
Each job and status are fileds in a record.
ID Job# Status Date
All the records are displayed in 1 form with same submit button.
CInt(Request("chkStatus" & i)) : This won't work either.
I also tried this:
for i=1 to request("chkStatus").count
SQL="Update Table Set Status = " & CInt(Request("chkStatus")(i)) & " Where ID = " & CInt(Request("txtID")(i))
cn.execute mysql
...not working...Anyone know why???
Let me explain what I'm trying to achieve.
First I select and display those records which have the Status=0.
Job5 Status=0
Job7 Status=0
Job11 Status=0
Then I update them, depends on their values if users checked them or not. Each records has a ID. And I'm trying to update each records based...
Thank you for your response.
Yes, they are all in a form. The form is in a table. And I have submit button to do the update. The method=post action=samepage.
Hi,
I have an SQL update based on the value of the checkboxes:
SQL="Update Table Set Status = " & CInt(Request("chkStatus")) & " Where ID = " & IntID
But I couldn't get the value of the checkboxes. I always update with checkbox's value = 0.
Here is my...
Hi,
When I tried to insert a value with a postrophe, it became "" in my table.
name= Kelly's Pan
strSQL="INSERT INTO mytable " & _
"VALUES ('" & name & "','" & email & "') "
How can I avoid this and still doesn't effect other values(without...
ifeyinwa, my site has some http and some https. If I want change all the page to https, what do I need to take precaustion? I have lots of graphic, included files....
I'm still having problems with "https"
I'm in "http" page, when I hit submit button, it depends on the conditions, I will be direct to different "https" page:
If Cond1 then redirect https 1: Works great
If Cond2 then redirect https 2: Works great
If Cond3 then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.