RE: [PHP] getting check box values into an array

2005-03-31 Thread Kim Madsen
> -Original Message- > From: Merlin [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 31, 2005 12:45 PM > > Hi there, > > I am facing a problem in getting all values from a form. > There are loads of input check boxes in there which are named: > x_1, x_2 etc. How do You create these nam

Re: [PHP] getting check box values into an array

2005-03-31 Thread Merlin
Ken wrote: On Thu, 31 Mar 2005 12:45:04 +0200, Merlin <[EMAIL PROTECTED]> wrote: Hi there, I am facing a problem in getting all values from a form. There are loads of input check boxes in there which are named: x_1, x_2 etc. Now I want to get that post data into an array. Somehow like this: for ...

Re: [PHP] getting check box values into an array

2005-03-31 Thread Ken
On Thu, 31 Mar 2005 12:45:04 +0200, Merlin <[EMAIL PROTECTED]> wrote: > Hi there, > > I am facing a problem in getting all values from a form. > There are loads of input check boxes in there which are named: > x_1, x_2 etc. > > Now I want to get that post data into an array. > > Somehow like thi

[PHP] getting check box values into an array

2005-03-31 Thread Merlin
Hi there, I am facing a problem in getting all values from a form. There are loads of input check boxes in there which are named: x_1, x_2 etc. Now I want to get that post data into an array. Somehow like this: for ...{ $interests[] = $_POST[x_1]; } The problem is that the script does not know h