Re: Accessing Arrays in HTML
| From: | Jochem Maas | Date: | Wed, 23 Nov 2005 12:25:01 +0000 |
| Subject: | Re: Accessing Arrays in HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226342@lists.php.net to get a copy of this message | ||
Shaun wrote:
Hi, I am trying to create a form on my page. The idea is that for each project people can select whether they are allocated for scheduling, non_scheduling or both. Here is an example of my form:take the time to work out what it is that is being POSTed: echo '<pre>'; var_dump( $_POST ); echo '</pre>';
...
...<tr><td><input name="project[25][Scheduling]" type="checkbox" value="25"><td> <td><input name="project[25][Non_Scheduling]" type="checkbox"
'".$fields[$i]."',
'".$fields[$i][0]."',
'".$fields[$i][1]."',
the 2 lines above should probably something like:
'".$fields[$i]['Scheduling']."',
'".$fields[$i]['Non_Scheduling']."',
...)");