if ($icq != "") { if (!preg_match('/[0-9]+$/', $icq)) { echo "icq may only contain numbers"; } }
what's wrong with this ? when i use it it doesnt give any output and everything just stops
empty screen.. :/
My guess is there is a problem somewhere else.
Put
error_reporting(E_ALL)
at the top of your stript
Why don't you just use is_numeric()
It's much easier
Mark www.hdwt.com
It's much easier, and also very wrong.
is_numeric() will return true for all strings that represent a number, which include "-1" and "6.323,103". ICQ numbers are only positive integers.
alright all
thanks for the help! it works now
greetings niels