emre@xxxxxxxxx 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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php