strlen question

From: Date: Fri, 23 Jul 2004 11:54:56 +0000
Subject: strlen question
Groups: php.general 
Request: Send a blank email to php-general+get-191628@lists.php.net to get a copy of this message
I have successfully hidden some parts of a form based on items being blank with following code: <?php if(strlen($_POST['item01']) > 0) { ?> <?php } ?> (with the help of this forum!!) the form is separated into 5 sections and if there are no items filled out in that section, then i need to hide the title too. I have been playing around with the syntax and am not having any success.......any suggestions? here is a sample of what i am trying: <?php if(strlen($_POST['item01', 'item02', 'item03']) > 0) { ?> <?php } ?>

« previous php.general (#191628) next »