Return to Snippet

Revision: 24264
at February 24, 2010 15:54 by petrafull


Initial Code
if($_POST['visible']==1) {
    $visible = 1;
} else {
    $visible = 0;
}

// equals:

($_POST['visible']==1) ? $visible = 1: $visible = 0;

Initial URL

                                

Initial Description

                                

Initial Title
if/else shortform

Initial Tags
form

Initial Language
PHP