Results 1 to 4 of 4
Thread: preg_match
Hybrid View
-
5th April 2010 12:48 #1
preg_match
javascript :
.Code:validName = /^[a-zA-Z---_ ]+$/.test(checkName);
:
.PHP Code:if(preg_match('/^[a-zA-Z--\-_ ]+$/',$checkName))
:
, , - Stirng2323 .PHP Code:if(preg_match('/^[a-zA-Z--\-_ ]+/',$checkName))
-
5th April 2010 13:35 #2
.
/u UTF-8 .
\s
, , - . .
$checkName $_GET/POST , urlencode .., ..
-
5th April 2010 13:55 #3
$checkName= mysql_real_escape_string(htmlspecialchar s(strip_tags($_POST['checkName'])));
PHP: 5.2.9
.PHP Code:preg_match('/^[a-zA-Z--\-_\s]+$/u'
/u.
-
5th April 2010 14:03 #4
/u, , UTF-8 (-), .
mysql_real_escape_string() htmlspecialchars preg_match . , - HTML .




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in