Checkbox disable/enable feature to return to form-POST

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shobana
    New Member
    • Oct 2006
    • 1

    Checkbox disable/enable feature to return to form-POST

    Hi

    I have a bunch of checkboxes. While in fetch method iam checking it and disabling the checkbox which has data in backend. Rest are enabled. User can check the rest and update it. While in form submission I need to differenciate between the checkboxes which are disabled and those that are enabled. I basically need only the checkmarked checkboxes which are enabled to update the database.

    Any help would be appreciated.

    Regards
    Shobana
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    How do you disable the checkboxes from PHP? Is that by setting the HTML statement with disabled="disab led" via PHP or via JavaScript?

    So, when a checkbox is disabled, the user cannot click it again.
    When these fields are POSTed after the submit, the disabled ones cannot be checked, so you just check if there are any checked ones.

    Or do I misunderstand your question/problem?

    Ronald :cool:

    Comment

    Working...