Reputation:
I am trying to send a link in the mail using PHP but i am not able to format it properly :
$message=".<a href=."http://abc.com/viewprofile.php?userid=".$user_id.">"Click here to view user profile"</a>";
Upvotes: 0
Views: 252
Reputation: 42440
Escape the quotes around href
:
$message = "<a href=\"example.com\">Link</a>";
Upvotes: 1