Re: [PHP] Multiple variables

2002-05-28 Thread Thalis A. Kalfigopoulos
>From my understanding of what you wrote: foreach($textBoxArray as $tBox=>$tVal){ if(empty($tVal)){ echo("Found empty textBox: $tBox\n"); } } Read in manual about isset() and empty() cheers, thalis On Tue, 28 May 2002, Morten Nielsen wrote: > Hi, > I got a tab

Re: [PHP] Multiple variables

2002-05-28 Thread Miguel Cruz
On Tue, 28 May 2002, Morten Nielsen wrote: > I got a table, which contains a lot of text-boxes. Each textbox has a name: > > Text1 > Text2 > Text3 > etc. > > Is it possible to check if they are all set using a for-loop? > I think of something like: > > for($i=1;$i<10;$i++) > { >

[PHP] Multiple variables

2002-05-28 Thread Morten Nielsen
Hi, I got a table, which contains a lot of text-boxes. Each textbox has a name: Text1 Text2 Text3 etc. Is it possible to check if they are all set using a for-loop? I think of something like: for($i=1;$i<10;$i++) { if(empty("Text"+$i)) { do something...

Re: [PHP] multiple variables

2002-03-15 Thread mnc
On Fri, 15 Mar 2002, Ralph Jarvis wrote: > An obvious question for some, but I am stumped: > I want to use multiple optins in an "if" statement... >if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) > What would be the proper syntax for this? Sometimes I find a switch to be the most efficient (

Re: [PHP] multiple variables

2002-03-15 Thread Edward van Bilderbeek - Bean IT
March 15, 2002 4:11 PM Subject: RE: [PHP] multiple variables > Hi! > > > if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) > > What would be the proper syntax for this? > > Here: > > if((user($arbitraryVariable) >= 1) and ($arbitraryVariable <= 4) and > ($

Re: [PHP] multiple variables

2002-03-15 Thread Andrey Hristov
if (in_array($arbitraryValue,array(1,2,3,4))){ } - Original Message - From: "Ralph Jarvis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 4:50 PM Subject: [PHP] multiple variables > Hi; > > An obvious question for some, but I

RE: [PHP] multiple variables

2002-03-15 Thread Christoph Starkmann
Hi! > if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) > What would be the proper syntax for this? Here: if((user($arbitraryVariable) >= 1) and ($arbitraryVariable <= 4) and ($arbitraryVariable == round($arbitraryVariable))) In other cases, you'd have to write if((user($arbitraryVariable)==1)

[PHP] multiple variables

2002-03-15 Thread Ralph Jarvis
Hi; An obvious question for some, but I am stumped: I want to use multiple optins in an "if" statement... if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) What would be the proper syntax for this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p