Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- eregi_replace problem
- Mad Hatter
March 1, 2008, 11:07 pm
rate this thread
I'm having problems getting my head around eregi_replace. What I want to do
is allow users to enter links to their sites in a simple guest book. The
links can take either of 2 formats:-
which would display 'http://www.nowhere.co.uk/apage.htm ' as the link text
[url=http://www.nowhere.co.uk/apage,htm ]click here[/url] which would
display 'click here' as a clickable link.
The first one I've managed to get working but I can't get my head around
the 2nd. Can anyone point be in the right direction please. I've looked and
looked at php.net but just can't make any sense of it :(