passing variable to iframe

Discussion in 'PHP' started by Crayz, Aug 20, 2006.

  1. #1
    How would I collect a variables data to use as the page in the iframe?
     
    Crayz, Aug 20, 2006 IP
  2. GeorgeB.

    GeorgeB. Notable Member

    Messages:
    5,695
    Likes Received:
    288
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Call the frame with a variable in the URL

    <frame id="TopFrame" src="framefile.php?this=123" name="TopFrame" marginwidth="4" marginheight="0" scrolling="no" noresize="true"></frame>
     
    GeorgeB., Aug 20, 2006 IP
  3. Crayz

    Crayz Well-Known Member

    Messages:
    708
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    120
    #3
    Sorry but, I dont completely understand that.

    Heres my variable:
    $surl = "$row['url']";

    and heres my iframe code

    <iframe name="illp" width="100%" height="700" border="0" frameborder="0" src="$varhere"</iframe>

    I want the code all in 1 file called selectpage.php
     
    Crayz, Aug 20, 2006 IP
  4. Crayz

    Crayz Well-Known Member

    Messages:
    708
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    120
    #4
    Nvm, I got it workin, thanks :)
     
    Crayz, Aug 20, 2006 IP