send checkbox value in php -


does knows how code in php every time tick check-box in form? , when tick check-box,the value suppose inserted id column in database , auto increase every time tick , submit form.

you need use ajax. following code snippet.

$('input:radio[name="tickexam"]').click(function() { if(this.checked){         $.ajax({             type: "post",             url: 'increase.php',             data: {id:$(this).val()},             success: function(data) {                 alert('increased.....');             },              error: function() {                 alert('sorry! there issue');             }         });          }   }); 

in increase.php write code increase value in table.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -