Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action='processes.php' method='GET'>
- <table>
- <?php
- echo "<tr>";
- echo "<th>COURSE NUMBER</th>";
- foreach($course_list as $cc){
- $c = str_replace("_", " ", $cc);
- echo "<th>$c</th>";
- }
- echo "</tr>";
- while($record = mysqli_fetch_assoc($user_subject_results)){
- echo "<tr>";
- $subjects[] = $record['Course']; //stores every subject in a list
- $_SESSION['Subjects'] = $subjects; //store the list in a session variable so i can use it in my processes page.
- echo "<td>".$record['Course']."</td>";
- foreach($course_list as $cc){
- echo "<input type = 'hidden', name = ".'pk'.$record['Course']." value = ".$user.'_'.$record['Course']." />";
- echo "<td><select name =".$kc.$record['Course'].">";
- foreach($eval_list as $opt){
- echo "<option value = '".$opt."'>".$opt."</option>";
- }
- "</select>
- </td>";
- }
- echo "</tr>";
- }
- ?>
- </table>
- <input type='submit' value='submit' />
- </form>
Add Comment
Please, Sign In to add comment