[PHP] strlen question

2004-07-23 Thread msa
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

Re: [PHP] strlen question

2004-07-23 Thread Matt M.
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

Re: [PHP] strlen question

2004-07-23 Thread Jake Stonebender
?php if(strlen($_POST['item01'] . $_POST['item02'] . strlen($_POST['item03'])) { ? I'm shooting for succinctness here. I'd like to see if someone has a shorter solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen question

2004-07-23 Thread Jake Stonebender
On Fri, 23 Jul 2004 09:34:24 -0500, Jake Stonebender [EMAIL PROTECTED] wrote: ?php if(strlen($_POST['item01'] . $_POST['item02'] .$_POST['item03'])) { ? That's what I actually meant. Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php