Question about PHP, is it possible.

Discussion in 'PHP' started by TubeTweaks, Mar 11, 2010.

  1. #1
    Hi guys so here's what im wanting to accomplish, but not sure how. I have a file containing a fixed header, and an iframe. I want to make the url in the iframe dynamic if you will. Basicly, i want to pass a website from the url to the iframe if that make sense, ill give you an example.

    we have http://www.URL.com/IFRAME.php which currently contains a link, and will open that link in an iframe

    instead, im looking to make the url in the iframe a variable i guess.

    So instead of opening a predefined link, we could do this.

    http://www.URL.com/IFRAME.php?url=http://www.google.com

    Which would then open google.com in the iframe.

    Im not sure if this is even possible, but in the coding world pretty much anything is possible :p Any help is appriciated.
     
    TubeTweaks, Mar 11, 2010 IP
  2. systematical

    systematical Peon

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <a href="http://link.com" target="name of your iframe">

    does that accomplish what you're looking for? Therefor whatever the link is, it would in the iframe so you could have many links pointing to that iframe. Is that dynamic enough?
     
    systematical, Mar 11, 2010 IP
  3. zannovski

    zannovski Greenhorn

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    zannovski, Mar 11, 2010 IP
  4. TubeTweaks

    TubeTweaks Peon

    Messages:
    128
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    zannovski!

    That's exactly what I was looking for mate, thanks infinity mate! +rep
     
    TubeTweaks, Mar 11, 2010 IP