Output of $_request: Array ( [csrname] => JRWR [action] => t2op1 ) if(strpos($action, "t2") === false) { print "hi"; $var = "1"; }else { if($action == "t2opt1") { $computer = "Compaq 8000"; echo "$computer"; echo "test"; } if($action == "t2opt2") { $computer = "Compaq 7050"; echo "$computer"; echo "test"; } if($action == "t2opt3"){ $computer = "Compaq GeeKBoX 390E"; echo "$computer"; echo "test"; } }