From: Jesse P. <je...@st...> - 2004-09-04 22:44:18
|
Phil, one other thing... I thought I'd added some init functions for get & post and form vars in MiscFunctions.php ... I thought those were kept, but I don't see them in there. Did I never give them to you or do you chop them? they are below for reference... jesse //Clean init of a POST var function initPvar($name,$defval=""){ if (isset($_POST[$name])){ $val = $_POST[$name]; } else { $val = $defval; } return $val; } //Clean init of a GET var function initGvar($name, $defval=""){ if (isset($_GET[$name])){ $val = $_GET[$name]; } else { $val = $defval; } return $val; } //Clean Init of a Form Var. Precendence => check POST, then GET - you shouldn't do both anyways! function initFvar($name, $defval=""){ $val = initPvar($name, $defval); if ($val == ""){ $val = initGvar($name, $defval); } return $val; } |