Re: strlen question

From: Date: Fri, 23 Jul 2004 13:59:27 +0000
Subject: Re: strlen question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191645@lists.php.net to get a copy of this message
> 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 } ?> <?php if(strlen($_POST['item01']) > 0 || strlen($_POST['item02']) > 0 || strlen($_POST['item03']) > 0) { ?> <?php } ?>

« previous php.general (#191645) next »