I am working on a simple forum and I have problems with the abily for
the users to submit links.
I don't want them you use HTML tags to I want to create a link with just
the URL, this works fine when I just have the link (the code below).
But when i pull out a text field from my MySQL it displays the
text until the URL and then nothing.
Does someone have an idea how to fix this?
Thanx in advance!
<?
$text = "http://www.phpbuilder.com";
$lenk = ereg_replace("http://(.*)","<a href=$text target=_new>$text</a>",$text);
echo $lenk
?>