another problem i need help with

Discussion in 'Programming' started by dawilster, Oct 10, 2008.

  1. #1
    can anybody help me why this isnt working, i get no error at all


    my page.php
    when i go page.php?link=8
    <?
    
    $link = $_GET['link']; 
    <frame src="/frame-left.php?link=$link" name="frame-left" noresize="noresize" id="frame-left" title="frame-left" scrolling="no">
    
    ?>
    Code (markup):
    if i go to /frame-left.php?link=8 for example i get the right page. but it doesnt display when i go to page.php?link=8

    thamls
     
    dawilster, Oct 10, 2008 IP
  2. crivion

    crivion Guest

    Best Answers:
    0
    #2
    put a print!basically you need to print the variable (print $link) not just type it like ($link)
    <?

    $link = $_GET['link'];
    print '<frame src="/frame-left.php?link='.$link.'" name="frame-left" noresize="noresize" id="frame-left" title="frame-left" scrolling="no">';

    ?>
     
    crivion, Oct 10, 2008 IP