【问题标题】:How to call on next page through readmore link如何通过阅读更多链接调用下一页
【发布时间】:2013-03-26 05:40:09
【问题描述】:

我在 php.ini 中使用这个脚本。我已成功添加了 readmore 选项,但我希望任何单击此链接的用户都将打开一个包含完整文章和图库图片的新页面。但我希望它在同一个窗口中打开。

echo "<div id=message>";
$text = $row["message"]; 
<?php echo substr($text,0,500);?>
<a href="#"?id=<?php echo $row['id']?> title="Full Story Of <?php echo $row['title']?>">Read More &raquo;</a>

【问题讨论】:

    标签: php html find


    【解决方案1】:

    请尝试以下方法:

    echo "<div id=message>";
    $text = $row["message"]; 
    <?php echo substr($text,0,500);?>
    <a href="readmorepage.php?id=<?php echo $row['id']?>" title="Full Story Of <?php echo $row['title']?>" target="_self">Read More &raquo;</a>
    

    虽然_self是相同的默认值所以你不需要写它。

    【讨论】:

    • @user2210257:您可以创建任意数量的链接。您只需要相应地管理链接 href。如果有任何问题,请告诉我。
    猜你喜欢
    • 2012-11-01
    • 2013-03-25
    • 2013-01-16
    • 1970-01-01
    • 2015-02-04
    • 2017-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多