This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Description
<form id="myform" method="post" action="form.php">
<div class="form-field">
<h5> checkbox example </h5>
<input type="checkbox" value="english" name="language" />English
<input type="checkbox" value="french" name="language" />French
<input type="checkbox" value="german" name="language" />German
</div>
<input type="submit" id="btn" />
</form>
<script>
$(document).ready(function(){
$("#btn").click(function(){
$.post('/',$("#myform").serialize(),function(data){
console.log(data);
});
return false;
});
});
</script>
form.php
<?php
print_r($_POST);