...

View Full Version : Text line to mail link



tenaki
03-25-2004, 12:02 AM
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.


if ( $config_field_4 != "" )
{
if ( $field_1 == true )
{
echo " | ";
}
echo "<b>" . $config_field_4 . "</b>";
}
Or this one

if ( $config_field_4 != "" )
{
item_details_line ( $item_config_field_4, $config_field_4, $column1_width, $column2_width, $bg_colour );
}

Steveo31
03-25-2004, 05:43 AM
Like this?


if ( $config_field_4 != "" ){
if ( $field_1 == true ){
echo "&nbsp;|&nbsp;";
}
echo "<b><a href=\"mailto:you@domain.com\">" . $config_field_4 . "</a></b>";
}

tenaki
03-25-2004, 02:18 PM
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 (http://www.touringandtenting.com/campsites/review_list.php?item_id=19&cat_id=2&sub_cat_id=9)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum