php_rockzz;11000870 wrote:Try using this:
if($folder_name.trim()=="" || $folder_description.trim()=="")
Considering that the code snippet you posted isn't even valid PHP syntax, I doubt that's going to be very helpful. 😉
EDIT: Okay, so technically it is valid PHP syntax (although it looks more like Javascript syntax), but it's definitely not doing what you think it's doing.
@: Another typo I see is in your HTML:
<input type='text' name'folder_name' maxlength'55'/>
Note the missing equal sign between the name attribute and its value. Same for the maxlength attribute as well.