Can somebody make me a simple PHP script? ...

Discussion in 'PHP' started by jasonwilks, Jan 12, 2007.

  1. #1
    I have a bunch of links on one of the projects I'm working on, and they are all like this:

    http://www.mysite.com/a1749392.php?805
    http://www.mysite.com/a1749392.php?794
    http://www.mysite.com/a1749392.php?2161
    http://www.mysite.com/a1749392.php?784
    http://www.mysite.com/a1749392.php?815
    http://www.mysite.com/a1749392.php?791
    and so on and so on...


    Now, those are links I have into my html page, they are not generated. What I want this php file (a1749392.php) to do is simply take that number after the "?" and put it after this: http://wow.allakhazam.com/db/quest.html?wquest=

    Then redirect to that site (along with that number after the "?").

    So for example, a user clicks on this: http://www.mysite.com/a1749392.php?791

    and the PHP file redirects the user to:
    http://wow.allakhazam.com/db/quest.html?wquest=791

    Do you see what I am saying? Is this possible? If so can somebody quickly make me this simple PHP file for me??? Thanks for any help!
     
    jasonwilks, Jan 12, 2007 IP
  2. smullen

    smullen Member

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    I don't quite understand, but...

    I think you want

    header('Location: http:www.blah.com/db/quest.html?'. $_SERVER['QUERY_STRING'] );
     
    smullen, Jan 13, 2007 IP
  3. jasonwilks

    jasonwilks Well-Known Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #3
    Thanks You Are The Man It Worked!!!!!!!!
     
    jasonwilks, Jan 13, 2007 IP