Results 1 to 2 of 2

Thread: Checkbox not working correctly

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    1

    Checkbox not working correctly

    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!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Checkbox not working correctly

    It's probably one of your numerous quote concatenations that's causing this. But which line gives you the error?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width