Results 1 to 3 of 3

Thread: Using wildcards in url's..

  1. #1
    Join Date
    Jun 2007
    Posts
    64
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default Using wildcards in url's..

    hey there..

    how can i use wildcards in this case:

    Code:
    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
    Last edited by kobo1d; 06-06-2009 at 03:11 PM. Reason: resolved

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try:

    Code:
     if (strstr('http://www.site.com/index.php?page=', $_SERVER['HTTP_REFER']) {
       // do something
     }
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jun 2007
    Posts
    64
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •