Re: input validation?
| From: | Austin Denyer | Date: | Thu, 12 Jan 2006 15:18:18 +0000 |
| Subject: | Re: input validation? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228533@lists.php.net to get a copy of this message | ||
On Thu, 12 Jan 2006 16:56:43 +0200
"William Stokes" <kalles@operamail.com> wrote:
>
> Hello,
>
> I need to check that user input text is less than 300 characters
> long. How?
if(strlen($UserInputText) > 300){
echo("Too long");
}
See http://www.php.net/manual/en/print/function.strlen.php
Regards,
Ozz.
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]