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
Post a Comment