egturnkey Posted September 28, 2010 Share Posted September 28, 2010 Hi there, for every case we have "gooo" as commen in all how this could be one code using anything like elseif or switch whatever... if($refere && (stripos($r, $refere) === false)){ echo "x1" }else{ echo"goooo" } And if($limited && ($line[hits] >= $limited)){ echo "x2" }else{ echo"goooo" } And if($pword && (isset($_POST['password']) && $_POST['password'] == $pword) ){ echo"goooo" }else{ echo"x3" } And if ($line[capt] == 1 && ($_SESSION["security_code"]) ){ echo"goooo" }else{ echo"x4" } thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/214635-3-days-thinking-of-it/ Share on other sites More sharing options...
litebearer Posted September 28, 2010 Share Posted September 28, 2010 the commonality of 'gooo' is not the critical issue, it is finding a commanlity of the various values that trigger 'gooo'. Quote Link to comment https://forums.phpfreaks.com/topic/214635-3-days-thinking-of-it/#findComment-1116811 Share on other sites More sharing options...
ignace Posted September 28, 2010 Share Posted September 28, 2010 echo ($refere && (stripos($r, $refere) === false)) && ($limited && ($line['hits'] >= $limited)) && !($pword && (isset($_POST['password']) && $_POST['password'] == $pword) && !($line['capt'] == 1 && ($_SESSION['security_code']) ? 'x' : 'gooooo'; LOOOLLLLL Quote Link to comment https://forums.phpfreaks.com/topic/214635-3-days-thinking-of-it/#findComment-1116819 Share on other sites More sharing options...
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.