Viewing file: teachersubmitform.php (4.65 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include('session.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Carrier Coaching</title> </head> <center> <body>
<form action="teacher.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#CCCCCC"> <tr> <td width="823" colspan="4" ><?php include('header.php'); ?></td> </tr> <tr> <td colspan="4" bgcolor="#FFFF00"><?php include('menubar.php'); ?></td> </tr> <tr> <td colspan="3" bgcolor="#CCCCCC"> <?php include('sessisionbar.php'); ?></td> </tr>
<tr> <td colspan="4" align="left" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="144" bgcolor="#33FF33">Teacher Name</td> <td width="306"> <?php // Create connection $con=mysqli_connect("localhost",'itce_user','rb!itc838',"itce_data");
// Check connection if (mysqli_connect_errno())
// Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } else { echo "We are connected."; }
$result = mysqli_query($con,"SELECT ID, name FROM teacher_registration ");
echo "<select name=\"teacher_name\" id=\"teacher_name\" >\n";
while($row = mysqli_fetch_array($result)) { echo "<option value='" . $row['name'] . "'>" . $row['name'] . "</option>"; } echo " </select>\n"; ?> </td> <td width="135" bgcolor="#33FF33">Lesar No</td> <td width="335"><input type="text" name="laser_no" id="laser_no" tabindex="1" /></td> </tr> <tr> <td bgcolor="#33FF33">Date</td> <td><select name="rel_date" id="rel_date" tabindex="2" required="required"> <option><?php echo date('d') ?></option> <option>01</option> <option>02</option> <option>03</option> <option>04</option> <option>05</option> <option>06</option> <option>07</option> <option>08</option> <option>09</option> <option>10</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> <option>17</option> <option>18</option> <option>19</option> <option>20</option> <option>21</option> <option>22</option> <option>23</option> <option>24</option> <option>25</option> <option>26</option> <option>27</option> <option>28</option> <option>29</option> <option>30</option> <option>31</option> </select> <select name="rel_month" id="rel_month" tabindex="3" required="required"> <option><?php echo date('m') ?></option> <option>FEB</option> <option>MAR</option> <option>APRIL</option> <option>MAY</option> <option>JUNE</option> <option>JULY</option> <option>AUG</option> <option>SEPT</option> <option>OCT</option> <option>NOV</option> <option>DEC</option> </select> <select name="rel_year" id="rel_year" required="required"> <option><?php echo date('Y') ?></option> <option>2014</option> <option>2015</option> <option>2016</option> <option>2017</option> <option>2018</option> <option>2019</option> <option>2020</option> </select></td> <td bgcolor="#33FF33">Amount</td> <td><input type="text" name="amount" id="amount" required/></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><input type="submit" name="addrecod" id="addrecod" value="Submit" accesskey="52" tabindex="52" /></td> <td> </td> <td> </td> </tr> </table> <p> </p></td> </tr> <tr> <td colspan="4"><?php include('footer.php'); ?></td> </tr> </table></form> </body></center> </html>
|