Quote:
Originally posted by Xenon
for 1:
in register.php it will work somehow similar, but i'll show you how to do in member.php 
find that:
PHP Code:
$varname="field$profilefield[profilefieldid]";
if ($profilefield[required] and $$varname=="")
{
eval("standarderror(\"".gettemplate("error_requiredfieldmissing")."\");");
exit;
}
and change to:
PHP Code:
$varname="field$profilefield[profilefieldid]";
if (($profilefield[required] and $$varname=="") or ($profilefieldid == 2 and $$varname != "" and strlen($$varname)<5))
{
eval("standarderror(\"".gettemplate("error_requiredfieldmissing")."\");");
exit;
}
that will disallow all inputs smaller than lenght of 5 except no input
|
Wouldn't this just give them the required field message missing jargon if they inputed less than 5 characters? How would they know it was because they entered less characters than required?