pielewuiter
New Member
Think it is quite obvious what i am trying to do. If gender variable is M then display the male image. I have tried a few things such as removing an =, but i am not having any success. Have i got this completely wrong? \[code\]if ($gender == M){<img src='http://stackoverflow.com/questions/10539147/images/male.png' width='45px' height'45px'>}else{($gender == F){ <img src='http://stackoverflow.com/questions/10539147/images/female.png' width='45px' height'45px'>}else{($gender == HIDE){<img src='http://stackoverflow.com/questions/10539147/images/uni.png' width='45px' height'45px'>}\[/code\]