Re: Making URL's and emails live links?
| From: | Mario Soto | Date: | Tue, 22 Apr 2003 20:03:26 +0000 |
| Subject: | Re: Making URL's and emails live links? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144913@lists.php.net to get a copy of this message | ||
<?php
$link="http://site.tld/folder/script.php?var=1";
$name="Click here";
echo "<a href=\"",$link,"\">",$text,"</a>";
?>
Is that what you want?
If there is for email, send the link already on this way. You have to use html mail. If is plain
text, then hope that the mail client do that automaticaly, or if now
To mailboxes, the href must start with 'mailto:' (eg. mailto:user@host.tld)
Mario Soto
mario_s@amigo.net.gt
-.-.-.-
----- Original Message -----
From: "tomba" <cntraltdel@hotmail.com>
To: <php-general@lists.php.net>
Sent: Tuesday, April 22, 2003 10:46 AM
Subject: [PHP] Making URL's and emails live links?
> I am looking for a way to make URL's and email addresses active links
> when found in block of text. I am setting up a classified ads site and
> would like to have the links generate automatically so advertizers
> could enter their text and not have to code the links.
>
> Anybody got some code already made to share or can point me in the
> right direction?
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>