Ansel_Tk1 Posted May 1, 2009 Share Posted May 1, 2009 Hi - wonder if someone could point out what I've done wrong here? function Trigger_chkip(&$tNG) { //redirect to quizcaptcha.php $usripsallowed = 14; if($totalRows_usrips > $usripsallowed) { $redObj = new tNG_Redirect($tNG); $redObj->setURL('quiz-captcha.php'); $redObj->setKeepURLParams(false); return $redObj->Execute(); } else return true; } For some reason the script never directs to quiz-captcha.php even though $totalRows_usrips returns greater than 14. If I change the greater than to an equal it works. Any help would be appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/156406-small-question/ Share on other sites More sharing options...
Ken2k7 Posted May 1, 2009 Share Posted May 1, 2009 What's $totalRows_usrips? That variable is *not* defined. Link to comment https://forums.phpfreaks.com/topic/156406-small-question/#findComment-823465 Share on other sites More sharing options...
Ansel_Tk1 Posted May 1, 2009 Author Share Posted May 1, 2009 Many thanks. Link to comment https://forums.phpfreaks.com/topic/156406-small-question/#findComment-823489 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.