Jump to content

If text contains url


swamp

Recommended Posts

Hi there,

 

I need to check if there has been a url submitted from a form so if a post was

 

"hi there, check out this website http://www.somewebsite.com/ - what do you think?"

 

when it was sent to the script it would do something like

 

if $_POST['comment'] has url in it then do function urlExists($url)

Link to comment
https://forums.phpfreaks.com/topic/164946-if-text-contains-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.