How to check if the 'skype name' is correctly typed, and age ?
$skype_form = '/[^a-zA-Z0-9_-]/';
$age_form = '/^[0-9.-]$/';
I've tried those, but they does not work
for skype name I've tried: someone55
for age I've tried: 18
Didn't work.
EDIT: Found
$age_form = '/^[0-9]{1,2}$/'; Works, but now how to check is the age greater than 12 and lower than 50.
Got this:
if(!preg_match($age_form,$age)) {
ALSO I need Name checking [A-Z and a-z] Only