|
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
Navigation:
[Reply to this message]
|