#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    389
    Rep Power
    8

    Select all checkbox


    hi,

    I want to make a "select all" function to "check" all the checkboxes in a line. However I prefer to have it available for all times, so that the user can't turn it off (if I would use Javascript for example).
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    Hi,

    not sure what you mean. PHP doesn't know what a checkbox is. All it does is output text (which often happens to be a HTML document). You can write things like checked="checked" into your HTML document, but you cannot "select all checkboxes" or something. How would that look like?

    (Theoretically, you could parse the document right before outputting it, but that would be insane.)
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    389
    Rep Power
    8
    ok, I think I'll do it with js. Thanks for the fast response

IMN logo majestic logo threadwatch logo seochat tools logo