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;$i10;$i++)
{
From my understanding of what you wrote:
foreach($textBoxArray as $tBox=$tVal){
if(empty($tVal)){
echo(Found empty textBox: $tBoxbr\n);
}
}
Read in manual about isset() and empty()
cheers,
thalis
On Tue, 28 May 2002, Morten Nielsen wrote:
Hi,
I got a table,
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) or
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 am stumped:
I want to use multiple
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
($arbitraryVariable == round($arbitraryVariable)))
In other cases, you'd have
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 (and
6 matches
Mail list logo