highborn
Feb 17th 2008, 11:04 pm
Hi,
I need help about preg_match URL.
Here is my problem.
How can I validate form if a user input this in the form. ex. http://www.domain.com or www.domain.com
The form should only accept domain.com.
if the http://www and www. are exists in the user's input the php code should output error like
"Must not contain http:// and www."
if the input is valid script continue.
Hope someone could help me about this.
Thanks,
Highborn
I need help about preg_match URL.
Here is my problem.
How can I validate form if a user input this in the form. ex. http://www.domain.com or www.domain.com
The form should only accept domain.com.
if the http://www and www. are exists in the user's input the php code should output error like
"Must not contain http:// and www."
if the input is valid script continue.
Hope someone could help me about this.
Thanks,
Highborn