Jump to content

spaces in php


UnknownPlayer

Recommended Posts

You need to validate the form fields.

 

$comment = trim($_POST['comment']);
if( strlen($comment) < 5 ) { // or however many characters you want as a minimum
     // echo or store error message
} else {
     // proceed
}

Link to comment
https://forums.phpfreaks.com/topic/213296-spaces-in-php/#findComment-1110570
Share on other sites

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.