Hi,
"=" operator is an assignement! To compare two values you have to use the boolean operator, "==".
So your code is "... if($gender == 'Male, Female')
And I think 'Male' and 'Female' are two distinct gender, rigth?
You need to check first one, then two:
... if($gender == 'Male') ... if($gender == 'Female') ...
Or better you can link this two if() with 'or'...
... if(($gender == 'Male') || ($gender == 'Female'))...
But what really you need is to get a look at the manual and to learn from begin...
Logical operators
Control structures
see you