You are here: Re: getting values of checkboxes. « PHP Programming Language « IT news, forums, messages
Re: getting values of checkboxes.

Posted by Jerry Stuckle on 11/30/07 19:15

jodleren wrote:
> Hi all!
>
> I have a problem - I have a list of checkboxes, with certain data...
> the point is, that some of them are set, and the important thing for
> mere is to get those values, which have changed from CHECKED to NOT
> CHECKED.
> Certain values are marked, once done, the user removes the flags, and
> I need to know what was set to not being checked anymore (to remove
> them from the task list).
>
> But - I only get the $_POST value, it the item was checked.
>
> How do I do it the other way?
>
> Hmmmmm while writing this, I wonder whether I can use isset() -
> whether the value is set, but just empty... will check tomorrow.
>
> WBR
> Sonnich
>

HTML only sends checkboxes which are checked. One way to do it is to
keep track of which boxes are checked (or all boxes with their previous
status) in hidden fields.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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