You are here: Re: how to create list of people with Yes/No radio buttons for each, then process form « PHP Programming Language « IT news, forums, messages
Re: how to create list of people with Yes/No radio buttons for each, then process form

Posted by NotGiven on 12/21/05 14:19

many thanks!


<larry@portcommodore.com> wrote in message
news:1135048720.160910.91840@g49g2000cwa.googlegroups.com...
> That's more code than I want to write here also your form structure
> would probably differ from mine, but I can say you got the general idea
> there. Here is a general idea of how the code goes:
>
> General structure would be
> read in the data...
> - set counter to 0
> - select the records
> - loop through the record with mysql_fetch_array
> - - increment counter
> - - Read in record ID, Name and Yes/No response to thier respective
> arrays (i.e. $name[] = $items['name']; $recordid =
> $items['recordid'];)
>
> Display the HTML, (inside use a PHP script to create the inputs)
> - Using a loop read in the array values as inputs up to the counter
> - - for input names use the array ID (i.e. ..name="name[]"> )
> - (don't forget to include the array counter and the record ID array
> as 'hidden' values.)
> - submit
>
> Reading back in the submitted form
> - read through arrays
> - - Do SQL updates with array data
>
> Hope that helps!
>
> Larry
>

 

Navigation:

[Reply to this 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

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