cmdata Posted August 19, 2009 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 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
Archived
This topic is now archived and is closed to further replies.