saya membuat sebuah kuisioner, tapi saya baru berhasil sampai menginputkan hasil kuisioner di dalam database. bagaimana cara 10 orang menilai satu orang? mohon bantuannya para master. terimakasih

ini source code dasar yang sudah saya buat
  1. [code=php]
  2. <fieldset>
  3.  
  4. <form name="form2" method="post" action="">
  5.  
  6. <tr>
  7. <td>id</td>
  8. <td><input type="text" name="id_hasil_kuisioner" required /></td>
  9. </tr>
  10. <tr>
  11. <td>Nama Dosen/Instruktur</td>
  12. <td><input type="text" name="nama_pendidik" required /></td>
  13. </tr>
  14.  
  15. <tr>
  16. <td>Nama Matkul</td>
  17. <td><input type="text" name="nama_matkul" required /></td>
  18. </tr>
  19.  
  20.  
  21. <table width="746" border="1" cellspacing="2" cellpadding="1" style="font-family:Georgia, 'Times New Roman', Times, serif;">
  22. <tr>
  23. <th width="40" scope="col">No</th>
  24. <th width="734" scope="col">Aspek yang Dinilai </th>
  25. <th width="150" scope="col" colspan="5">Skala Penilaian</th>
  26.  
  27. </tr>
  28. <tr style="height:70;">
  29. <th scope="row">1</th>
  30. <td align="justify">Dosen/Instruktur menyampaikan Silabus dan Kontrak Perkuliahan kepada mahasiswa pada awal perkuliahan</td>
  31.  
  32. <td width="30"><p align="center">
  33. <label>
  34. 1 <br>
  35. <input type="radio" name="nil_5" value="5" onClick="isi_bil1(this)" >
  36. </label>
  37. </p></td>
  38.  
  39. <td width="30"><p align="center">
  40. <label>
  41. 2 <br>
  42. <input type="radio" name="nil_5" value="4" onClick="isi_bil1(this)" >
  43. </label>
  44. </p></td>
  45.  
  46. <td width="30"><p align="center">
  47. <label>
  48. 3<br>
  49. <input type="radio" name="nil_5" value="3" onClick="isi_bil1(this)">
  50. </label>
  51. </p></td>
  52.  
  53. <td width="30"><p align="center">
  54. <label>
  55. 4<br>
  56. <input type="radio" name="nil_5" value="2" onClick="isi_bil1(this)">
  57. </label>
  58. </p></td>
  59.  
  60. <td width="30"><p align="center">
  61. <label>
  62. 5<br>
  63. <input type="radio" name="nil_5" value="1" onClick="isi_bil1(this)">
  64. </label>
  65. </p></td>
  66. </tr>
  67.  
  68. <tr style="height:70;">
  69. <th scope="row">2</th>
  70. <td align="justify">Materi kuliah yang disampaikan Dosen/Instruktur sesuai dengan Silabus </td>
  71.  
  72. <td width="30"><p align="center">
  73. <label>
  74. 1 <br>
  75. <input type="radio" name="nil_4" value="5" onClick="isi_bil1(this)" >
  76. </label>
  77. </p></td>
  78.  
  79. <td width="30"><p align="center">
  80. <label>
  81. 2 <br>
  82. <input type="radio" name="nil_4" value="4" onClick="isi_bil1(this)" >
  83. </label>
  84. </p></td>
  85.  
  86. <td width="30"><p align="center">
  87. <label>
  88. 3 <br>
  89. <input type="radio" name="nil_4" value="3" onClick="isi_bil1(this)" >
  90. </label>
  91. </p></td>
  92.  
  93. <td width="30"><p align="center">
  94. <label>
  95. 4 <br>
  96. <input type="radio" name="nil_4" value="2" onClick="isi_bil1(this)" >
  97. </label>
  98. </p></td>
  99.  
  100. <td width="30"><p align="center">
  101. <label>
  102. 5 <br>
  103. <input type="radio" name="nil_4" value="1" onClick="isi_bil1(this)" >
  104. </label>
  105. </p></td>
  106. </tr>
  107.  
  108. <tr style="height:70;">
  109. <th scope="row">3</th>
  110. <td align="justify">Apabila Dosen/Instruktur melakukan perubahan jadwal perkuliahan telah disepakati dengan mahasiswa </td>
  111.  
  112. <td width="30"><p align="center">
  113. <label>
  114. 1 <br>
  115. <input type="radio" name="nil_3" value="5" onClick="isi_bil1(this)" >
  116. </label>
  117. </p></td>
  118.  
  119. <td width="30"><p align="center">
  120. <label>
  121. 2 <br>
  122. <input type="radio" name="nil_3" value="4" onClick="isi_bil1(this)" >
  123. </label>
  124. </p></td>
  125.  
  126. <td width="30"><p align="center">
  127. <label>
  128. 3 <br>
  129. <input type="radio" name="nil_3" value="3" onClick="isi_bil1(this)" >
  130. </label>
  131. </p></td>
  132.  
  133. <td width="30"><p align="center">
  134. <label>
  135. 4 <br>
  136. <input type="radio" name="nil_3" value="2" onClick="isi_bil1(this)" >
  137. </label>
  138. </p></td>
  139.  
  140. <td width="30"><p align="center">
  141. <label>
  142. 5 <br>
  143. <input type="radio" name="nil_3" value="1" onClick="isi_bil1(this)" >
  144. </label>
  145. </p></td>
  146. </tr>
  147.  
  148. <tr style="height:70;">
  149. <th scope="row">4</th>
  150. <td align="justify">Dosen/Instruktur menyiapkan dan mengisi absensi perkuliahan setiap kali pertemuan </td>
  151.  
  152. <td width="30"><p align="center">
  153. <label>
  154. 1 <br>
  155. <input type="radio" name="nil_2" value="5" onClick="isi_bil1(this)" >
  156. </label>
  157. </p></td>
  158.  
  159. <td width="30"><p align="center">
  160. <label>
  161. 2 <br>
  162. <input type="radio" name="nil_2" value="4" onClick="isi_bil1(this)" >
  163. </label>
  164. </p></td>
  165. <td width="30"><p align="center">
  166. <label>
  167. 3 <br>
  168. <input type="radio" name="nil_2" value="3" onClick="isi_bil1(this)" >
  169. </label>
  170. </p></td>
  171.  
  172. <td width="30"><p align="center">
  173. <label>
  174. 4 <br>
  175. <input type="radio" name="nil_2" value="2" onClick="isi_bil1(this)" >
  176. </label>
  177. </p></td>
  178.  
  179. <td width="30"><p align="center">
  180. <label>
  181. 5 <br>
  182. <input type="radio" name="nil_2" value="1" onClick="isi_bil1(this)" >
  183. </label>
  184. </p></td>
  185. </tr>
  186.  
  187. <tr style="height:70;">
  188. <th scope="row">5</th>
  189. <td align="justify">Dosen/Instruktur menyiapkan dan mengisi absensi perkuliahan setiap kali pertemuan </td>
  190.  
  191. <td width="30"><p align="center">
  192. <label>
  193. 1 <br>
  194. <input type="radio" name="nil_1" value="5" onClick="isi_bil1(this)" >
  195. </label>
  196. </p></td>
  197.  
  198. <td width="30"><p align="center">
  199. <label>
  200. 2 <br>
  201. <input type="radio" name="nil_1" value="4" onClick="isi_bil1(this)" >
  202. </label>
  203. </p></td>
  204. <td width="30"><p align="center">
  205. <label>
  206. 3 <br>
  207. <input type="radio" name="nil_1" value="3" onClick="isi_bil1(this)" >
  208. </label>
  209. </p></td>
  210.  
  211. <td width="30"><p align="center">
  212. <label>
  213. 4 <br>
  214. <input type="radio" name="nil_1" value="2" onClick="isi_bil1(this)" >
  215. </label>
  216. </p></td>
  217.  
  218. <td width="30"><p align="center">
  219. <label>
  220. 5 <br>
  221. <input type="radio" name="nil_1" value="1" onClick="isi_bil1(this)" >
  222. </label>
  223. </p></td>
  224. </tr>
  225.  
  226. </table>
  227.  
  228.  
  229. <input type="submit" name="SIMPAN" value="SIMPAN" />
  230. </form>
  231. <p>&nbsp;</p>
  232. <div class="clear"></div>
  233.  
  234. <?php
  235. include "../INCL/koneksi.php";
  236. $id_hasil_kuisioner=@$_POST['id_hasil_kuisioner'];
  237. $nama_pendidik=@$_POST['nama_pendidik'];
  238. $nama_matkul=@$_POST['nama_matkul'];
  239. $nil_5 = @$_POST['nil_5'];
  240. $nil_4 = @$_POST['nil_4'];
  241. $nil_3 = @$_POST['nil_3'];
  242. $nil_2 = @$_POST['nil_2'];
  243. $nil_1 = @$_POST['nil_1'];
  244. $total= $nil_5+$nil_4+$nil_3+$nil_2+$nil_1;
  245.  
  246. $SIMPAN = @$_POST['SIMPAN'];
  247.  
  248. if($SIMPAN){
  249.  
  250. mysql_query("insert into tb_hasil_kuisioner
  251. values('$id_hasil_kuisioner','$nama_pendidik','$nama_matkul','$nil_5','$nil_4',
  252. '$nil_3','$nil_2', '$nil_1', '$total')") or die (mysql_error());
  253. ?>
  254. <script type="text/javascript">
  255. alert("DATA BERHASIL DISIMPAN");
  256. window.location.href="?page=kuisioner&action=simpan";
  257. </script>
  258. <?php
  259.  
  260. }
  261. ?>
  262.  
  263. </fieldset>
14800
Please login to answer!
/sangkep/answer/add-json/nogzip/1
/sangkep/answer/send-notification
User Paling Aktif Bulan Lalu

Rey Paksi Manggala

Rey Paksi Manggala

Point Bulan Lalu: 6