Reply to Re: [PHP] Accessing Arrays in HTML

Your name:

Reply:


Posted by Jochem Maas on 11/23/05 14:25

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']."',


> )");

....

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация