Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to not submit form with random spaces or without text? Reply To: How to not submit form with random spaces or without text?

#169243
__
Participant

And on the PHP side, you can use the trim function:

$comment = trim( $comment );
if( empty( $comment ) ){
    /* no empty comments allowed! */
}