Results 1 to 3 of 3

Thread: Help

  1. #1
    Join Date
    Dec 1969

    Default Help

    I have the following code to retrive some infomation from a form:<BR><BR>BolGroupe = request.form("groupe")<BR>If not BolGroupe then BolGroupe = request.querystring("Groupe")<BR><BR>Groupe is the name of a checkbox that is set to Value="True" if it&#039;s checked, this work fine.<BR><BR>How-ever, sometimes I must also use a link and then I need to store info in url, when checkbox is checked I get a link that looks something like this : http://something/file.asp?groupe=True which also works ok. The problem is when I use a link and the checkbox is not true, then I get a link that looks something like this : http://something/file.asp?groupe= and then I get this error :<BR><BR>Type mismatch: &#039;BolGrupper&#039; in this line :<BR>If not BolGroupe then BolGroupe = request.querystring("Groupe")<BR><BR>Any thoughts ?

  2. #2
    Imran qureshi Guest

    Default RE: Help

    try:<BR><BR>BolGroupe = cbool( request.form("groupe") )<BR><BR>if len(bolgroupe) &#062; 0 then<BR>BolGroupe = true<BR>else<BR>BolGroupe = false<BR>end if

  3. #3
    milind Guest

    Default RE: Help

    it&#039;s intended behavior . nothing will be passed if the check box will not be checked/ON . so accordingly code your script when you check in the next page what&#039;s there in the query string . <BR><BR>check if group = True else assign empty string to BolGroupe .<BR><BR>hih mils

Posting Permissions

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