You are here: Re: update table for several records « PHP Programming Language « IT news, forums, messages
Re: update table for several records

Posted by Geoff Berrow on 12/27/05 18:54

Message-ID: <1135698304.628992.276450@g49g2000cwa.googlegroups.com> from
zek2005 contained the following:

>Each checkbox has an unique name. I understand how to update the table
>with one record checked, but as the numbers of records to change can
>variable, how do I do it???


Don't give each check box a unique name, give each check box the same
name only do it like this: name= "check[]" The value of the checkbox
should be the id of the record you want to change.

This will result in an array of values, $_REQUEST['check'], which you
can loop through using foreach.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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