Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

set a minimum character value in php

if (strlen($input) < 12)
{
   echo "Input is too short, minimum is 12 characters (20 max).";
}
elseif(strlen($input) > 20)
{
   echo "Input is too long, maximum is 20 characters.";
}
 
PREVIOUS NEXT
Tagged: #set #minimum #character #php
ADD COMMENT
Topic
Name
6+5 =