Jump to content

The best way to check if a textarea or an input box is empty?


takn25

Recommended Posts

If you need to force the user to fill in these boxes then javascript is best to use before the form is submitted to the server. But you always need a backup plan for js. I use if(isset($_POST['id_name']))  but empty() does just as good a job i think.

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.