Rollo Tamasi wrote:is there any validation rule that i might be able to use actually?
Hi,
i can suggest you two things.
first: use a regular expressions to check if the input is formated as we need it. For that just use this:
!ereg("^([A-Za-z0-9-]{3,}).([A-Za-z]{2,})+$", "google.com")?print("Wrong Format!"):print("Right Format.");
here we check of string as someTextOrDigits with minimum 3 chars in length. fallowed by dot. and then again only text with more that 2 chars in length.
if the input string don't match with your regular expression template display and error and 'example of right input value'.
and the second way to do this is to use a str_replace and to remove/replace www. from the input string. for example:
$string = str_replace("www.", "", "www.google.com");
this will replace www. in your string and will output google.com instead of www.google.com
i think this is the better way to do it, but it's all your choose.
and excuse my english, it's not my native language :rolleyes: