Re: Letters and Numbers limitation

From: Date: Wed, 10 Mar 2004 18:58:26 +0000
Subject: Re: Letters and Numbers limitation
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180038@lists.php.net to get a copy of this message
Form takes parameter username, so I want to accept username taht includes only numbers and letters. How can I check if variable contains only letters and numbers?
Use regular expressions. See the PHP manual (for PCRE or POSIX) for more. You'll also find a number of tutorials online about validating form input with regex, I suspect. Larry

« previous php.general (#180038) next »