Jump to content

security issue with form and mysql


dhirajkumar41

Recommended Posts

        if (preg_match("/^[0-9a-zA-Z_]{5,}$/",$username) === 0) {
            echo 'Username must be bigger than 5 chars and contain only digits, letters and underscore';
        }

You could do something like the above with the digits removed from the preg_match statement?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.