learn.php
// see if var is defined in get or post vars
see if var is defined in get or post vars
see if var is defined in get or post vars
function post_get($var) {
    if (isset($_GET[$var]) && strlen($_GET[$var]) > 0) {
        return $_GET[$var];
    } else if (isset($_POST[$var]) && strlen($_POST[$var]) > 0) {
        return $_POST[$var];
    } else {
        return null;
    }
}
function post_get ( $ var ) { if ( isset ( $ _GET [ $ var ] ) && strlen ( $ _GET [ $ var ] ) > 0 ) { return $ _GET [ $ var ] ; } else if ( isset ( $ _POST [ $ var ] ) && strlen ( $ _POST [ $ var ] ) > 0 ) { return $ _POST [ $ var ] ; } else { return null ; } }
see if var is defined in get or post vars
see if var is defined in get or post vars