0) break; } if($int1 > $int2) { $method = 'add'; } else $method = 'subtract'; switch($method) { case 'add': $answer = $int1 + $int2; break; case 'subtract': $answer = $int1 - $int2; break; } $question = 'What is '.$int1.' '.$method.' '.$int2.'?'; $_SESSION['answer'] = (string) $answer; /* I Kill Spam End */ ?>
|
|||||
|
Forum Archive | About us | Privacy Policy © Access World 2010 |