searching text & transforming to link
Posted: Mon Aug 23, 2004 8:47 am
I am sure there is a function that exists to do this, but as I am new to php just wondering if someone could point me in the right direction.
What I am trying to do is allow users to enter a link into a text field, such as "http://www.vicouncil.org". Prior to saving the text to the database I want to search through the text and insert the hyperlink tags. This will allow me me to display the text as a hyperlink when i pull it from a database rather than as regular text.
I hope my question was clear. all help appreciated.
Best,
Edward M.
What I am trying to do is allow users to enter a link into a text field, such as "http://www.vicouncil.org". Prior to saving the text to the database I want to search through the text and insert the hyperlink tags. This will allow me me to display the text as a hyperlink when i pull it from a database rather than as regular text.
I hope my question was clear. all help appreciated.
Best,
Edward M.