<form method="post" action="makepub.php"> .... Loop .... echo '<table><tbody><tr><td align="center">'; echo '<input type="checkbox" name="file_list[]" value="'.$pr.'">' ; echo '</td></tr></tbody></table><table><tbody><tr /></tbody></table>'; .... .... Loop end ?>
if (isset($_POST['submit1'])) { $file_list = $_POST["file_list"]; $how_many = count($file_list); echo 'Total No of Public files chosen : '.$how_many.'<br><br>'; if ($how_many>0) { echo 'You changed following files to public : <br>'; } for ($i=0; $i<$how_many; $i++) { echo ($i+1) . '- ' . $file_list[$i] . '<br>'; // Some code here } echo "<br><br>"; } </br></br></br></br></br></br>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)