adding link in php mail()

Posted on 2008-11-17
Last Modified: 2012-06-27
how would i make the link work in the below code?
$text = "

A reply has been posted to a topic you are watching ". $gettopic3['title']." by ". $gettopic3['lastposter'].".

Please follow the link: <a href=\"$forum&id=$forumpostid&pagenum=last">index.php?page=message&forum=$forum&id=$forumpostid&pagenum=last</a>";

Open in new window

Question by:runnerjp
    LVL 6

    Expert Comment

    Try this,
    $text = "
    A reply has been posted to a topic you are watching ". $gettopic3['title']." by ". $gettopic3['lastposter'].".
    Please follow the link: <a href=\"$forum&id=$forumpostid&pagenum=last\">index.php?page=message&forum=$forum&id=$forumpostid&pagenum=last</a>";

    Open in new window

    LVL 27

    Accepted Solution

    $text = "A reply has been posted to a topic you are watching ". $gettopic3['title']." by ". $gettopic3['lastposter'] . ".  Please follow the link:$forum&id=$forumpostid&pagenum=last" ;



    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now