Code: Select all
echo ("<a href = \" mailto: $member_email \" > $member_email </a>
any help would be greatly appreciated
Moderator: General Moderators
Code: Select all
echo ("<a href = \" mailto: $member_email \" > $member_email </a>
Code: Select all
echo '<a href = "mailto:' . $member_email . '">' . $member_email . '</a>'I wish they gave us back single quotes(`) as a third option.I don't like the string-variable parsing feature of PHP.
Code: Select all
function qq($text)
{
return str_replace('`','"',$text);
}
function printqn($text)
{
echo qq($text)."\n";
}Code: Select all
printqn("<a href =`mailto:$member_email`>$member_email </a>");I hope this is a private members-only Web page, and even so, you do not want to output e-mail address to anything public, or you will open your members up to spam. I know you want to keep this simple, but it is usually better to have a contact form and let people send messages to a member that way.developing a simple webpage right now . . .outputs a table of information relating to the members. . .member e-mail
Agreed. Sorry, probably not helpful for someone learning the language.mpetrovich, is going a bit off-topic there.