John
John

Reputation: 4944

Making only hyperlink text appear rather than entire link URL

For the link below, I would like $link1 to appear at the bottom as the anchor text "Comment Link" as a hyperlink. Instead, the entire link is showing down at the bottom.

How could I make it so only "Comment Link" is showing?

Thanks in advance,

John

$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


";

Upvotes: 0

Views: 152

Answers (1)

Mike
Mike

Reputation: 2603

Missing closing ' at the end of your anchor's href attribute.

Upvotes: 1

Related Questions