|
Posted by Josip Dzolonga on 10/21/64 11:12
emre@vt.com.tr wrote:
>if((eregi("[^a-zA-Z0-9]",$GP[sifre])
>
I think that the ^ anchor is your problem, it shall be out of the brackets :
if (eregi("^[a-zA-Z0-9]+$", $GP['sifre'])) echo 'true';
else echo 'false';
(the above is tested and works perfect)
P.S. Take a look here
http://www.php.net/manual/en/language.types.array.php#language.types.array.donts
--
Josip Dzolonga
http://josip.dotgeek.org
jdzolonga[at]gmail.com
Navigation:
[Reply to this message]
|