cmdata Posted August 19, 2009 Report Share Posted August 19, 2009 Hello!I need some help with change state of a checkbox if a session varible is true or false.LikeIf Session("chkbox") = true thenmychk is onelsemychk is offend if:) Link to comment Share on other sites More sharing options...
chibineku Posted August 19, 2009 Report Share Posted August 19, 2009 The easiest way that I can think of is to use ASP to generate the relevant HTML. I don't know ASP, but if it works like php, then it's really simple to do that. In PHP it would look like this: <input type="checkbox" <?php if($_SESSION["variable_name"]) { echo "checked" }; ?> /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now