Jump to content

[SOLVED] Quick Validation Question


JSHINER

Recommended Posts

first, for usernames, I usually use their email anyways. keeps things simpler IMO

 

but, if you want to make sure they don't use their email, just make it so their username has to be alphanumeric and underscores. in php you can use

if(!preg_match('/^\w+$/',$email)) die("Invalid username");

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.