im making a forum and i want the user not to be able to use HTML tags. although, i want them to be able to use my special forum tags (similar to ultimate bulletin board) to post a URL. how can i isolate the http://www.yahoo.com inside the [link][/link] tags.
[link]http://www.yahoo.com[/link]
I want that tag (inputed by the user) to, when submitted, turn into
<a href="http://www.yahoo.com">http://www.yahoo.com</a>
in order to do this i need to isolate the http://www.yahoo.com i figure this is easiest to do using the ereg function, im not sure how that works. Could someone please show me how they would do it.