Am I missing something here?

Results 1 to 3 of 3

Thread: Am I missing something here?

  1. #1
    Join Date
    Dec 1969

    Default Am I missing something here?

    I&#039m submitting some information from a form via the querystring. I&#039ve made sure that I grab the info, and set it to a variable, but when I want to go and verify it, I get some problems. The information I&#039m trying to verify are some checkboxes, at least one of the four needs to be checked. I&#039m running my check as such:<BR><BR>if (morning=on or afternoon=on or evening=on or late_night=on) then<BR>contact_time=true<BR>else<BR>contact_time= false<BR>end if<BR><BR>All variables are set and defined before trying to run the check, but no matter what I do, or what the information submitted is, contact_time will never change it&#039s value from whatever I define it as beforehand. What am I doing wrong here guys?<BR><BR>Steve<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default RE: Am I missing something here?

    i assume you are doing this...<BR><BR>morning = request.querystring("checkboxname")<BR><BR>and for the other variables also<BR><BR>then you will have to do this<BR><BR>if (morning="on".....

  3. #3
    KPW Guest

    Default RE: Am I missing something here?

    I can&#039t be certain without seeing more of your code, but does it help to do this<BR><BR>if (morning="on" or afternoon="on" or evening="on" or late_night="on") then<BR>...<BR><BR>HTH

Posting Permissions

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