Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts

    link display in php

    Hi im making an email form in php,

    I am having problems with adding a link to the
    PHP Code:
    $message 
    can you see where im goin wrong.

    PHP Code:
    $message "A comment has been added to <a href='http://www.site.com/view.php?forum_id=$forum_id'>$forum_name</a>"
    Thanks
    Last edited by simjay; 02-16-2006 at 05:06 AM.

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Your code looks fine. Are you getting an error or what?
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Its not showing it as a link, its showing it as text

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    I took your code and just made up some values for those variables and ran it on my server. Everything looked fine.

    What values are you using for $forum_id and $forum_name?
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I think it must be somthing to do with it being a email, becuse i the emails are sent in text form, not html

  • #6
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You can't have links in plain text email. You'll have to set it up as HTML email if you want the links to look ok and work as hyperlinks.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #7
    Regular Coder
    Join Date
    Jul 2005
    Posts
    153
    Thanks
    1
    Thanked 0 Times in 0 Posts
    what would be the best way to do it automaticaly?

  • #8
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    The easiest way to understand HTML email, in my opinion, is to find an HTML mail message in your InBox and view the message source to see how it's put together. For a detailed tutorial on how to setup an HTML email script, I'd recommend that you read the PHPMailer tutorial.

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #9
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://uk.php.net/function.mail
    There is a basic example there for sending HTML email.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •