esm
07-02-2003, 09:08 PM
the following is the code for the the account_name field. it requires something like FirstName MI Lastname.
// NAME
if ($f_required[name]) {
// Validate this field...
if (eregi("^[a-zA-Z.,]{2,} {1,}[a-zA-Z,. ?]{1,}[a-zA-Z.]{2,}$", $f[name])) {
if($comma) $q.= ' , ';
$q.=" account_name = '$f[name]' ";
$comma = TRUE;
} else {
$ret.="<BR>Please enter a valid name!";
}
} else {
if($comma) $q.= ' , ';
$q.=" account_name = '$f[name]' ";
$comma = TRUE;
}
how do I change it so i can enter most anything???
such as Tom or Bill or Sleepyeyes...
// NAME
if ($f_required[name]) {
// Validate this field...
if (eregi("^[a-zA-Z.,]{2,} {1,}[a-zA-Z,. ?]{1,}[a-zA-Z.]{2,}$", $f[name])) {
if($comma) $q.= ' , ';
$q.=" account_name = '$f[name]' ";
$comma = TRUE;
} else {
$ret.="<BR>Please enter a valid name!";
}
} else {
if($comma) $q.= ' , ';
$q.=" account_name = '$f[name]' ";
$comma = TRUE;
}
how do I change it so i can enter most anything???
such as Tom or Bill or Sleepyeyes...