1
function getserval($val) { if ( !isset($_SERVER[$val]) || $_SERVER[$val] == "" ) { return "-"; } else { return $_SERVER[$val]; } }