...

View Full Version : what does that mean



ricolding
07-09-2012, 03:44 AM
what does that code mean

if(preg_match("/^[\w\.\-]{1,25}$/", $_GLOBAL['name']) == false) define('ERRMSG', _ERR_NAME);

and there is a small problem i can`t register a name in arabic

that script doesn`t based on mysqle so what should i do to make it accept arabic username and spaces too

chantlive.com

ricolding
07-09-2012, 03:45 AM
is that code is encoded or something ???

Sing
07-09-2012, 03:52 AM
The codes you posted are PHP, not javascript. And no, it's not encoded, it is checking if $_GLOBAL['name'] matches a specific format.

ricolding
07-09-2012, 04:09 AM
The codes you posted are PHP, not javascript. And no, it's not encoded, it is checking if $_GLOBAL['name'] matches a specific format.

so what is the format and how could i change it to match arabic format ??

Sing
07-09-2012, 04:14 AM
so what is the format and how could i change it to match arabic format ??
I'm not too familiar with those, maybe try the fellas in server side coding? (http://www.codingforums.com/forumdisplay.php?f=6)

Old Pedant
07-09-2012, 08:42 PM
Specifically, ask in the PHP forum. Or maybe a moderator could move this thread there.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum