Hi, how can I set multiple checkbox? I am able to get only one value. My code is as below.
<script type="text/javascript" charset="utf-8">
var form1 = [
{view:"checkbox", labelRight: 'Exact Match', name: 'match[]', value: 1, checked: true},
{view:"checkbox", labelRight: 'Patrons', name: 'match[]', value: 2},
{view:"checkbox", labelRight: ' CS', name: 'match[]', value: 3},
{view:"checkbox", labelRight: 'Between Systems', name: 'match[]', value: 4},
{ view:"button", value:"Submit", width:100, align:"center", click:function(){
webix.send("pro_match.php", $$("my_form").getValues());
}}
];
webix.ui({
container:"areaA",
margin:30, cols:[
{ view:"form", id:"my_form", scroll:false, width:700, elements: form1 }
]
});
</script>
------------------------------------
In my PHP code,
$match = $_POST["match"];
$checked_count = count($match);
echo "You have selected following ".$checked_count." option(s): <br/>";