Code: Select all
if($_GET['d']==2)
$top="game";
elseif($_GET['d']==3)
$top="app";
else
$top="empty";
echo $top;Moderator: General Moderators
Code: Select all
if($_GET['d']==2)
$top="game";
elseif($_GET['d']==3)
$top="app";
else
$top="empty";
echo $top;Code: Select all
/(&|\?)([^&=]+)=?([^&]*)/gCode: Select all
if($_GET['d']==2)
$top="game";
elseif($_GET['d']==3)
$top="app";
else
$top="empty";
echo $top;Thanx and sorry,because I couldnot understand that because I'm on level 1 now in programming and I think its more than level 5,isn't it,eh?requinix wrote:Without a framework, you can run a regex against document.location.search.Take note of how to get multiple results from exec().Code: Select all
/(&|\?)([^&=]+)=?([^&]*)/g