If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Hi,
I've a big problem..(that's for me)
My database has a field and the value can be 0 or 1.
I want that if value is 0, my results page gives checkbox checked , else if the value is 1 my results page gives checkbox unchecked...
Sorry for the English, thanks
Bye
This is not a big problem.Assign the recordset value into a variable and keep this variable in a hidden field.Write a javascript or VB script function to ON the checkbox
This is what I do:
<%if recordset.field.value = 0 then%>
<input type="checkbox" name="checkbox1" checked>
<%else%>
<input type="checkbox" name="checkbox1">
<%end if%>
You can cotrol your html tags with your serverside scripts. Try it.