multiple variable check

Discussion in 'PHP' started by Fracisc, Dec 12, 2008.

  1. #1
    I have a form with 60 variables. I need a script that will check that they are all selected. It is a questionnaire.

    I have it like this:

    question 1 yes/no
    question 2 yes/no
    etc.

    Now, I need to check if they selected an answer for every single question. If not, I need to tell them everything that they forgot to do (IE. answer Q1 and Q4). If they answered to all of the questions we can continue the script.

    How can I do that? I cannot manage to do it properly.

    Any help will be greatly appreciated!!!
     
    Fracisc, Dec 12, 2008 IP
  2. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #2
    you will need to pass form checkbox as array. Refer to this: php manual faq
     
    olddocks, Dec 12, 2008 IP