Code: Select all
<input type="checkbox" name="selection[]" value="<?php echo $row[$i] ?>" /> Check box 1
<input type="checkbox" name="selection[]" value="<?php echo $row[$i] ?>" /> Check box 2
<input type="checkbox" name="selection[]" value="<?php echo $row[$i] ?>" /> Check box 3
<input type="checkbox" name="selection[]" value="<?php echo $row[$i] ?>" /> Check box 4
<input type="checkbox" name="selection[]" value="<?php echo $row[$i] ?>" /> Check box 5in Ajax i use something like:
Code: Select all
var e_id = document.getElementById('selection').value;
var queryString = "?e_id=" + e_id;
ajaxRequest.open("GET", "cc/fs.php" + queryString, true);
ajaxRequest.send(null);PS: This script contains both PHP and Ajax so I was confused where to post it. I'm sorry if this is the wrong forum...