rendered paste body<html> <body> <form action="no_starch.php" method="post" /> <table border=1 cellpadding=10> <tr> <td><font size=1><strong> Book Title </strong></font></td> <td><font size=1><strong> Available </strong></font></td> </tr> <?php $file = fopen("all_no_starch.txt", "r") or exit("Unable to Open File!"); //Output a line 'till the end of file while(!feof($file)){ $filename=fgets($file); echo "<tr><td><font size=1><strong>" . $filename . "<br /></strong></font></td>"; echo "<td><input type=\"checkbox\" name=\"book[$filename]\" $checked><br />";} fclose($file); ?> </table> <input type="submit" /> </form></body><html>