When you perform the test you want to know if the $id is the user's
choice and if the user's choice is in the array.
Your code reads differently. You are checking to see if $id is the
user's choice OR $id is in the array. which would always check the
countries in the array.
>
I'm sorry, your message doesn't make sense...
First you say that you want to do what the script is doing, and then
you say you don't want it to do that.
>i want to select the
>countries (check their checkboxes) if they are equal to a particular country
>variable I have set or if they appear in
2 matches
Mail list logo