Re: auto link?
| From: | Bob Scott | Date: | Mon, 16 Jul 2001 20:41:33 +0000 |
| Subject: | Re: auto link? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58119@lists.php.net to get a copy of this message | ||
Take a look at
http://www.php.net/manual/en/function.ereg-replace.php
There's a bit of sample code up there that may help...
-bob
--
Bob Scott Web / DB Developer
http://www.covalent.net Covalent Technologies, Inc.
On Mon, 16 Jul 1979, zerosumzero@yahoo.com wrote:
> On Ray's advice I've given up on letting the users put html into my form.
> But I would like any http:// type addresses they include to be
> turned into
> hyper links:
>
>
>
> <a href=http://www.mysite.com>www.mysite.com</a>
>
> is there a script or function some place I can use to do this? Or must I try
> to write something of my own?
>
>
> Susan
>
>
> --
> susan@futurebird.com
> http://futurebird.diaryland.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>