Back to the month index |
Back to the list index
|
Jason Armstrong (jason@datrix.co.za)
Tue, 25 Nov 1997 10:37:33 +0200 (SAT)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Next message: Marta Garcia Brizuela: "Re: Question re w3-msql and Checkboxes"
- Previous message: Michael Amster: "Re: Problem with sig 11 crash in Linux"
Date: Tue, 25 Nov 1997 10:37:33 +0200 (SAT) From: Jason Armstrong <jason@datrix.co.za> Subject: Re: Question re w3-msql and Checkboxes Message-ID: <Pine.LNX.3.95.971125103534.10429A-100000@shark.datrix.co.za>On Tue, 25 Nov 1997, Kevin McQuiggin wrote:
> The problem is that if the user checks ONE box, then the $flags variable
> is interpreted as a scalar, but if they check TWO or more, then the
> $flags variable comes in as an array. A check of "if($flags == "")" to
> determine whether the scalar exists (meaning a single checkbox) then
> fails with an error "Improper array reference".
$type = typeof($flags);
if ($type == "char") {
if ($flags != "") {
/* scalar */
}
}
if ($type == "array") {
/* array */
}
Jason Armstrong
jason@datrix.co.za
- Next message: Marta Garcia Brizuela: "Re: Question re w3-msql and Checkboxes"
- Previous message: Michael Amster: "Re: Problem with sig 11 crash in Linux"