Re: [PHP] How to pass unknown number of variables to a function?

2002-07-05 Thread Uwe Birkenhain
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

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Terence Kearns
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."")

RE: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Rudolf Visagie
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

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Alberto Serra
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

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Jason Wong
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

[PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Uwe Birkenhain
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