I have a form on our site where chapters enter their monthly meeting info. I added a checkbox to the form where if they want to allow members to register online they check the box, if they do not want online reg they leave it unchecked. It's working, but the problem is when the email is sent the link to online reg shows whether they checked it or not. Code below:

Code on page 3 for checkbox:
Code:
Session("AllowRegisterOnline") = CBool( Trim(Request("ckbox")) <> "" )
   objRS.fields("online_reg") = Session("chap") + request.form("mnth") + request.form("day") + request.form("year")

<input type = "checkbox" name="ckbox"> Check here if you would like to enable online registration
Page 6 code (email page)

Code:
If objrs("AllowRegisterOnline") <> "" then  
    
    jmail.appendHTML "<tr><td width=""407""><p align=""center""><font face=""Arial"" size=""2""> "  _ 
               & "<a href=""http://www.ficpa.org/public/Catalog/CourseDetails.aspx?courseID=08" & objrs("online_reg") & """ " _ 
               & " target=""_blank"">Click here to register online with your credit card</a>"      
      
   
   end if
Right now I'm getting an expected function error. Before that I was getting an end expected.

What am I doing wrong??? Thanks!