[ create a new paste ] login | about

Link: http://codepad.org/8yszk8xv    [ raw code | output | fork ]

PHP, pasted on Aug 8:
1
2
3
4
5
6
7
8
<?php
    $LIVE='1';
    echo '<input type="checkbox" '.(($LIVE=='1') ? ' checked ' : '').'/>';

    $LIVE='0';
    echo '<input type="checkbox" '.(($LIVE=='1') ? ' checked ' : '').'/>';

?>


Output:
1
<input type="checkbox"  checked /><input type="checkbox" />


Create a new paste based on this one


Comments: