Page 1 of 1

blank spaces

Posted: Tue Feb 08, 2005 11:08 pm
by shiznatix
ok i have a text field that submits the entered text with post. but if someone enters only blank spaces it still goes through, how can i tell if the post data is only blank spaces?

Posted: Tue Feb 08, 2005 11:13 pm
by feyd
strlen(trim($field_data)) == 0

Posted: Wed Feb 09, 2005 3:25 pm
by shiznatix
works thanks