check textarea variable in a form if there is a url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • perhapscwk
    New Member
    • Sep 2007
    • 123

    #1

    check textarea variable in a form if there is a url

    any idea how to check textarea variable in a form, if there is a url
    in the textarea, then add <a href to the url before we insert it
    to database?
  • guillermobytes
    New Member
    • Jan 2010
    • 77

    #2
    you could use preg_replace() to find URI's. and add the convenient tags.

    Comment

    • perhapscwk
      New Member
      • Sep 2007
      • 123

      #3
      thanks. I have solved it.

      Comment

      Working...