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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text line to mail link

    Hi

    I have a php/mysql database and I'm looking for a way to make one of the fields into a simple clickable link (email)

    At the moment when I or a member adds an email address it shows up as just plain text, I would like it clickable.

    I have found 2 areas where I think it needs to be changed can anyone point me in the right direction.

    PHP Code:
    if ( $config_field_4 != "" )
                {
                if ( 
    $field_1 == true )
                    {
                    echo 
    " | ";
                    }
                echo 
    "<b>" $config_field_4 "</b>";
                } 
    Or this one
    PHP Code:
    if ( $config_field_4 != "" )
            {
            
    item_details_line $item_config_field_4$config_field_4$column1_width$column2_width$bg_colour );
            } 

  • #2
    New Coder
    Join Date
    Feb 2004
    Location
    California
    Posts
    96
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like this?
    PHP Code:
    if ( $config_field_4 != "" ){
        if ( 
    $field_1 == true ){
        echo 
    "&nbsp;|&nbsp;";
        }
        echo 
    "<b><a href=\"mailto:you@domain.com\">" $config_field_4 "</a></b>";


  • #3
    New to the CF scene
    Join Date
    Mar 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No that caused one of those lovely fatal errors.

    The field is one which myself or members can enter an email along with all the other details (any email address) Would that make a difference.

    Here is a link to the actual page if that helps to explain it better. As you can see the email is flat textMy site


  •  

    Posting Permissions

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