Page 3 of 3

Posted: Thu Jun 28, 2007 7:47 am
by knallbernd
Aah, now I got it!

I also tried to do it much more easier:

Code: Select all

$validated = (!empty($_POST['Frage1'][$key]) && !empty($_POST['Frage2'][$key]));

if (!$validated) {
echo "incorrect";
}

else
{

//UPDATE...
So it will only write values if there are all values filled by one persona --> not all radiobuttons are checked, but specifically the person.
Maybe not exactly what I want, but not so bad, don't you think? But I will also try your thoughts.
Thank you! Thank you! Thank you!

Posted: Thu Jun 28, 2007 10:59 am
by knallbernd
It's even more easy...

According to the GUI-Guidelines, a radiobutton has always be checked from the beginning - this solves my problem, because there is no danger to have an empty field.