Menu
Hello,
I have the following script:
[code=php]
if (empty($_POST[‘company_name’])) {
$message[] = ‘Please enter a company name’;
$cn = FALSE;
} else {
$cn = escape_data(strip_tags(stripslashes(trim($_POST[‘company_name’]))));
}
I was wondering how I go about adding a Reg Exp so that the ‘company_name’ has to be greater than 3 characters? I thought this’d be quite easy to do.
Thanks for any help with this.