NickG21 Posted December 28, 2006 Share Posted December 28, 2006 if (!preg_match("/^(http(s?):\/\/|ftp:\/\/{1})((\w+\.){1,})\w{2,}$/i",$domainName)) { $error[]="Domain Name"; $domainName="";}doesn't seem to be working, whether i put in a url in a valid or invalid format the error is always displayed, anyone with a little experience in preg_match have an idea where the problem is? i found this script on a different forum where the person said it worked and it doesnt for me. thanks to everyone in advance Link to comment https://forums.phpfreaks.com/topic/32098-small-problem/ Share on other sites More sharing options...
NickG21 Posted December 28, 2006 Author Share Posted December 28, 2006 damn, not even 1 reply, tough crowd tough crowd lol Link to comment https://forums.phpfreaks.com/topic/32098-small-problem/#findComment-149010 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.