susanBuck / e2-fall22

0 stars 0 forks source link

Undefined key #32

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi,

When I return the array of choices, it does give me only the checked values I want to check if a checkbox is not checked.

this is my code and I'm sure the last condition should be different:

**``` if ($choice[0]=='choice1' && $choice[1] == 'choice2' && $choice[2] == ' ' ) { $result= '$my_result'; }

RobertHolzhauser commented 1 year ago

You may need to check for null. I think there's a function that will tell you if either choice is null.

ghost commented 1 year ago

Thank you very much