Re: RE: How can I check for characters in a $_POST[] variable?
| From: | Marco Lanzotti | Date: | Thu, 22 Sep 2011 13:10:05 +0000 |
| Subject: | Re: RE: How can I check for characters in a $_POST[] variable? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314982@lists.php.net to get a copy of this message | ||
Il 22/09/2011 17:54, Eric ha scritto:
> if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) {
Whi this '(.*)'?
For '.' and '..' problem use is_file().
Bye,
Marco