Re: getting values of checkboxes.



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@xxxxxxxxxxxxx
==================

.



Relevant Pages

  • Re: PHP Mailto:
    ... Hello...I have a form with checkboxes on it. ... When those check boxes are ... I'm trying to create a PHP script that will parse my html page and send ... depending on which input you have selected. ...
    (php.general)
  • Re: Forms - not recieving all input information
    ... Have you made sure that both text boxes and the check boxes are inside the ... tags if you look at it in html or code view. ... > nor the same with the checkboxes i have a question which> can have multiple answers...but these dont show up in my> results file. ...
    (microsoft.public.frontpage.client)
  • working on html objects using HTML DOM, VBscript
    ... checkboxes, dropdown list, text boxes, links..... ... I will perform some operations on these objects, like selecting value ... can some one please provde me the code for this using HTML DOM, ...
    (microsoft.public.scripting.vbscript)
  • Re: Different data shown based on user input
    ... my advice changes with the info that there are over 200 checkboxes. ... I suggest you use combo boxes. ... Dim strStub As String ...
    (microsoft.public.access.queries)
  • Re: Different data shown based on user input
    ... A form that knows which check boxes have been checked can be created like ... --check only one check box and observe that the other checkboxes are ... The basic process is to build the query using the fields that have been ... Dim strStub as String ...
    (microsoft.public.access.queries)