0
<td>FooterMenu</td>
      <td><input  type="checkbox" name="FooterMenu" value="1"
        <?php if($FooterMenu == 1): ?> checked="checked" <?php elseif($FooterMenu != 1):?> checked="unchecked" <?php endif;?>/>        
    </td>
2
Contributors
1
Reply
13
Views
3 Years
Discussion Span
Last Post by Borzoi
-1

You shouldn't have a colon after the if queries and you aren't using braces. I'm also pretty certain that the value for a box to be unchecked is actually just blank, not "unchecked". I suggest trying this:

<td>FooterMenu</td>
<td><input type="checkbox" name="FooterMenu" value="1" checked="<?php if($FooterMenu == 1){echo "checked";}else{echo "";} ?>" /></td>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.