Guest User

Untitled

a guest
Jul 17th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <form action='processes.php' method='GET'>
  2. <table>
  3. <?php
  4. echo "<tr>";
  5. echo "<th>COURSE NUMBER</th>";
  6. foreach($course_list as $cc){
  7. $c = str_replace("_", " ", $cc);
  8. echo "<th>$c</th>";
  9. }
  10. echo "</tr>";
  11.  
  12. while($record = mysqli_fetch_assoc($user_subject_results)){
  13. echo "<tr>";
  14.  
  15. $subjects[] = $record['Course']; //stores every subject in a list
  16. $_SESSION['Subjects'] = $subjects; //store the list in a session variable so i can use it in my processes page.
  17.  
  18. echo "<td>".$record['Course']."</td>";
  19.  
  20. foreach($course_list as $cc){
  21. echo "<input type = 'hidden', name = ".'pk'.$record['Course']." value = ".$user.'_'.$record['Course']." />";
  22.  
  23. echo "<td><select name =".$kc.$record['Course'].">";
  24.  
  25. foreach($eval_list as $opt){
  26. echo "<option value = '".$opt."'>".$opt."</option>";
  27. }
  28. "</select>
  29. </td>";
  30. }
  31. echo "</tr>";
  32. }
  33. ?>
  34.  
  35. </table>
  36. <input type='submit' value='submit' />
  37. </form>
Add Comment
Please, Sign In to add comment