Forum Moderators: coopster
$a="100";
$pageurl = $_SERVER['REQUEST_URI'];
$caturl = strpos($pageurl, $a);
if ($caturl == true){
$b="1";
}
The above will return 1 for $b because the url has "100".
But now I have many variables and really having a hard time doing it.
My variables now are: 100, 200, 300, 400, 500, and
different outcomes on $b, ie. 1, 2, 3, 4, 5.
example, if "200" is found on url, $b would be "2" etc.
Thanks for your help.