thebobby Posted April 5, 2012 Posted April 5, 2012 Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 Quote
rulerofzu Posted April 5, 2012 Posted April 5, 2012 (edited) If it aint there then you dont need to worry about it. Edited April 6, 2012 by illusions Quote
thebobby Posted April 5, 2012 Author Posted April 5, 2012 if ($_POST['submit'] != ""){ $_POST['changedesc'] = Clean($_POST['changedesc']); get this when trying to change banner Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 Quote
grant Posted April 6, 2012 Posted April 6, 2012 if ($_POST['submit'] != ""){ $_POST['changedesc'] = Clean($_POST['changedesc']); get this when trying to change banner Fatal error: Call to undefined function Clean() in /home/blaz1986/public_html/banner.php on line 10 function clean($str = '', $html = false) { if (empty($str)) return; if (is_array($str)) { foreach($str as $key => $value) $str[$key] = clean($value, $html); } else { if (get_magic_quotes_gpc()) $str = stripslashes($str); if (is_array($html)) $str = strip_tags($str, implode('', $html)); elseif (preg_match('|<([a-z]+)>|i', $html)) $str = strip_tags($str, $html); elseif ($html !== true) $str = strip_tags($str); $str = trim($str); }return $str; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.