Okay so I have radio buttons for the user to pick from certain images as their image. Their image starts as the default image and can change it to 2 others. Here's the radio buttons and PHP to display the image:
<input type="radio" id="Default" name="change_image" value="0" />
<input type="radio" id="Unknown" name="change_image" value="1" />
<input type="radio" id="Gasmask" name="change_image" value="2" />
<?php
if ( $user_image < 1 )
{
echo
'<img src="images/user_image/Default.png" width="60" height="60" />';
}
elseif ( $user_image = 1 )
{
echo
'<img src="images/user_image/Unknown.png" width="60" height="60" />';
}
elseif ( $user_image > 1 )
{
echo
'<img src="images/user_image/GasMask.png" width="60" height="60" />';
}
?>
Well, the if and first elseif work, but the 3rd elseif will not display that image? Are their any reasons why?