Thank's for the help everybody!
I used something different (a little like this nice one from Terence (thank
you!) but with JS:
I named my form 'test' and included a hidden field 'collector'.
At the checkboxes the name is the value I need. The box, when checked, gets
the value 1.
In the boxtags
This is a nice easy one :)
It couldn't be simpler.
Just put empty square brackets (as used in arrays) in front of your
checkbox name.
The example below assumes you have PHP 4.1 or greater (which uses
$_POST to contain form posted data)
notice how name="ck[]"
Untitled
".$varval."")
o:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 10:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to pass unknown number of variables to a function?
Hi everybody on this rainy morning!
My problem:
I give the user a form with a list of options with checkboxes.
The list is long and not predictable - th
Uwe Birkenhain wrote:
> Hi everybody on this rainy morning!
Rainy!? It's damn hot in Kiev :)
> My problem:
> I give the user a form with a list of options with checkboxes.
> The list is long and not predictable - the values change always.
> I want to put the checked values (or all, that doesn't
On Thursday 04 July 2002 16:52, Uwe Birkenhain wrote:
> Hi everybody on this rainy morning!
>
> My problem:
> I give the user a form with a list of options with checkboxes.
> The list is long and not predictable - the values change always.
> I want to put the checked values (or all, that doesn't m
Hi everybody on this rainy morning!
My problem:
I give the user a form with a list of options with checkboxes.
The list is long and not predictable - the values change always.
I want to put the checked values (or all, that doesn't matter) in an array,
to pass it to my function.
How can I write t
6 matches
Mail list logo