Documentation Index

About the getvar/getvars/postvar/postvars Functions

These functions, defined in INC/GETPOST.PHP, have been designed and re-designed and re-re-designed too many times. Finally, it is best in their simpilest form:

    function postvar($var) {
        return (isset(
$_POST[$var])) ? $_POST[$var] : '';
    }

That may seem silly at first glance, but the result is an overall reduction of complexity for the if is set read else empty code is then in a single location in the code and not scattered throughout.