Hi all . i have a javascript that makes get request as shown:
localhost/test.php?cmd=visitorRepCommand¶ms=visitorTyping%201&site=2020202&sessionkey=1abbcad8b561c84f7502793f1953a37f&d=1178974427466
I wrote a php script that checks if value of params is visitorTyping%201 or visitorTyping%200.But problem is that both of my if statments fails to catch those value.could any one tell me what i am doing wrong here. i checked everything i see the values are passed corectly but it seem i am not checkinng those values corectly!!Thanks
PHP Code:<?
$cmd = $_GET['cmd'];
$params = $_GET['params'];
....
else if ($cmd=="visitorRepCommand" && $params=="visitorTyping%200")
{
echo "test1";
}
else if ($cmd=="visitorRepCommand" && $params=="visitorTyping%201")
{
echo "test2";
}
?>




Reply With Quote