Re: input validation?

From: Date: Thu, 12 Jan 2006 15:13:44 +0000
Subject: Re: input validation?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-228531@lists.php.net to get a copy of this message
I need to check that user input text is less than 300 characters long. How?
if (strlen($_POST['input']) < 300) { ... You may want to also apply trim() to the input text to get rid of extraneous white space at the beginning and end of the input. Larry

« previous php.general (#228531) next »