Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to save and get checkbox value in database php

if ( isset($_POST['check']) ) {
    $check = "some value";
} else { 
    $check = "another value";
}

$sql = "INSERT INTO users (check) VALUES ('$check')";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #checkbox #database #php
ADD COMMENT
Topic
Name
4+1 =