I've got a dynamic list for invoices that uses checkboxes allowing the user to select what invoice(s) they want to pay on.
I can't figure out how to grab the names of the checkboxes .. I want to convert the values into a string.
Here's the code that generates the checkboxes (it's in a do/while loop):
<input name="ps<?php echo $row_rsPP['apid']; ?>" type="checkbox" id="ps<?php echo $row_rsPP['apid']; ?>" value="<?php echo $row_rsPP['ap_project_cost']; ?>">
Here's the code trying to create the string :
$ps = array();
$total_cb = count($ps);
do{
$ps[] = $_POST['ps'];
} while ($ps < $total_cb);
$total = count($ps);
print "total_cb = ".$total_cb."<br><br>";
print "total = ".$total."<br><br>";
$pn = implode(", ", $ps);
Thanks for any help.