Reply to Re: how to track update checkbox

Your name:

Reply:


Posted by Chris White on 05/01/05 05:26

patriarck@gmail.com wrote:
> Hi Freinds,
> I have a form , basiclly shows multiple pictures for a userid, the form
> and pictures are generated dynamicly based on 2 tables USER > PICTURES
>
> I am showing the picture and stauts of ACTIVE as checkbox.
>
> Now when user uncheck the picture , I like to be able to capture the
> value of the new chcekbox.
>
> foreach($HTTP_POST_VARS as $key=>$val)
> {
> print $key." -- ".$val."--<br>";
> }
>
> this is giving me only the on values, and I can't get the unchecked
> keys
>
> In result , I want to be able to have a list of the variables with
> checked and unchecked (0,1) values after submission of the form.
>
> How can I do it?
>
> Thanks in advance,
> Pat
>

Have you considered javascript? I'm quite certain there's a javascript
function that is activated when a checkbox's value is changed. I'm
going to suppose you can wrap php within the javascript code to work
with it. Hope this gives you an idea.

Chris White

[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

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