How do i make a text box do something if there is not text in it?

i have a text box and a button similar to the email form. i do not want people sending me 50 blank emails, so… i wanted to make some kind of code for the button so that it requires some text for the message to be submitted… any idea of how to do this? thanks!