check box after submitting the client ticked content, how the server side avoids the client-submitted check of the selected query

Source: Internet
Author: User
After the check box submits the client tick, how does the server handle the checked query submitted by the client?


For example, I checked the 1,4,5.
How to get to 1,4,5 on the server side and query out the various types of large and small number each.
The fields of the database are the kid,lb,xh inside the table, where the model is only large, medium, and three values.

Also, how to tick submit data after paging.
For example, I checked the first page of 1,4,5 three, the second page tick, 8,9,12 three, because the paging, you need to turn the page tick, flip the page after the selection of how to submit data, please expert guidance.

Share to:


------Solution--------------------
$kid =join (', ', $_post[' kid ')
$sql = "SELECT * from table where kid in ($kid)";

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.