I am making a Flash/PHP Guestbook! I have successfully done so but the automatic parsing of emails and urls have some problems! I am using ereg_replace() to search for and parse urls and email address but when a user has an email like [email protected] it only considers the part after the underscore thus displaying the wrong email address: in this case would be [email protected]!
Here’s the script I used!
$link = ereg_replace("[[:alpha:]]+@[^<>[:space:]]+
[[:alnum:]]","<a href=\"mailto:\\0\"><u>".$name."</u></a>", $link);
Hope you can help me!