03-02-2009, 06:49 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Michigan Morels
Thank you again bananalive, it worked exactly as I asked. You Da Man!
However, I didn't think it through all the way.
What I really needed was if 'any' of the three question were used, then the other two would have to be filled in too.
So I just repeated the code and changed the q#'s around like this
and it works ok.
But I'm wondering if this is the proper way to do it for each set of questions, or if it should be written a different way.
Thanks again for your help. *nominated for Mod of Month*
|
PHP Code:
if ($q[4] || $q[5] || $q[6])
{
if (empty($q[5]))
{
$iqs[] = 5;
$complete = false;
}
if (empty($q[6]))
{
$iqs[] = 6;
$complete = false;
}
if (empty($q[4]))
{
$iqs[] = 4;
$complete = false;
}
}
|