just a little code help, one line promise

Discussion in 'Web Design and Development' started by Cabbit, Jun 18, 2007.

  1. Cabbit macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #1
    Code:
    <td><a href=\"#top_nav\" \, \"javascript:ajaxpage('/includes-functions/story_display.php?id=%s', 'contentarea');\">%s</a></td><td><span style=\"TEXT-ALIGN:center\">%s</span></td>
    this is part of a php print command, i want it to open the new page and jump to the top of the page, i've tryed the above and it moves to the top of the page but it dosnt open up the other page withing the contentarea as required. Without the "#top_nav" included it opens up the page in the contentarea perfictly.
     
  2. Cabbit thread starter macrumors 68020

    Cabbit

    Joined:
    Jan 30, 2006
    Location:
    Scotland
    #2
    Code:
    <?php
    print "<form action=\"includes-functions/storie_comment_uploader.php?id=<?php print $id; ?>\" method=\"post\">";
    ?>
    oh and theres somthing wrong with this but i cant put my finger on it. (this one is FIXED)
     

Share This Page