Log in

View Full Version : Resolved Using wildcards in url's..



kobo1d
06-06-2009, 12:29 AM
hey there..

how can i use wildcards in this case:


if( $_SERVER["HTTP_REFERER"] == "http://www.site.net/index.php?page=" )

i want everything that could stand after "page=" to be accepted.. just like i would put an "*" .. i tried with "%", but it didnt work!


plz help

thetestingsite
06-06-2009, 12:42 AM
Try:



if (strstr('http://www.site.com/index.php?page=', $_SERVER['HTTP_REFER']) {
// do something
}


Hope this helps.

kobo1d
06-06-2009, 03:05 PM
hey! well it didnt work like i want it to, but thx for ya try!
i found another solution with ereg and searching for the navigation variable..

cheers