Jump to content

[SOLVED] how to check for blank spaces in a text field???


cluce

Recommended Posts

I am trimming the data which didnt work but I never tried the empty function.

 

isset() on a text field will always return true since the empty string is a legitimate value. empty() on the other hand, will return false if the value of the variable is equivalent to an empty string. So, empty() would actually return your desired results with or without trimming.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.