#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    0

    How to process a checkbox with php?


    How to process a checkbox with php?
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    105
    Rep Power
    51
    If the checkbox is checked, it will return a POST value, and if unchecked it will not.

    PHP Code:
    if(isset($_POST['yourcheckboxname'])){
    $checkbox true//The checkbox is checked
    }else{
    $checkbox false//The checkbox is not checked

    Post to Facebook using a Nokia 3310

IMN logo majestic logo threadwatch logo seochat tools logo