仅显示超链接文本而不是整个链接URL

时间:2010-09-14 16:44:31

标签: php html

对于下面的链接,我希望$ link1在底部显示为锚文本“Comment Link”作为超链接。相反,整个链接显示在底部。

我怎么能这样做只有“评论链接”显示?

提前致谢,

约翰

$link1 = "<a href='http://www.domain.com/path/comments/index.php?submission=".urlencode($submission)."&submissionid=".urlencode($submissionid)."&url=".urlencode($url)."&countcomments=".urlencode($countcomments)."&submittor=".urlencode($submittor)."&submissiondate=".urlencode($submissiondate)."&dispurl=".urlencode($dispurl).">Comment Link</a>";

    $message1 = "
Someone made the following comment on your submission $submission:

$comment


Please click the link below to see the comment in context.

$link1


";

1 个答案:

答案 0 :(得分:1)

在你的主播的href属性结尾处缺少关闭。