Passing a value from a checkbox
ginp | Posted 5:51am 2. October 2007 Server Time |
I have a 7 page form where I want to allow users to check a checkbox on page 3 if they want to allow their members to register online. The link for the registration would show on page 5. I want the link to only show if the check box is checked. Right now the link does not show, can someone tell me what I'm doing wrong or if I should do it a different way. Thanks!
Code on page 3:
<%
Session("AllowRegisterOnline") = CBool( Trim(Request("ckbox")) <> "" )
%>
<input type = "checkbox" name="ckbox"> Check here if you would like to enable online registration
Code on page 5:
<%
If Session("AllowRegisterOnline") Then
Response.Write("<a href='http://www1.ficpa.org/coursenet/Catalog/CourseDetails.aspx?courseID=07" & objrs("online_reg") & "' target='_blank'>Register online now</a>")
End If
%> |
|
|