Sh3ll
OdayForums


Server : Apache
System : Linux profile 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User : apache ( 48)
PHP Version : 8.0.28
Disable Function : NONE
Directory :  /var/www/html/venkat/ary/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/venkat/ary/leave.php
<?php
//echo $r;
include("inde.php");
include("db1.php");
include("session.php");


$sql = $conn->prepare("SELECT * FROM armyleavetype");
//$sql->bindValue(':rollno',$id);
$sql->execute();
//$row = $sql->rowCount();
//if($row > 0) {
?>
<!--<center> <h2> Army-Allahabad </h2> </center>-->
	 <div align = "center"> <br><form method = "post" action = "leavesubmit.php">
	   <table>
		

		<colspan = "3"> <td> <b> Submit Leave Details </b> </td> </tr>
			<tr>
		<td> <br> Army Id </td> <td> <br> : </td> <td> <br>  <input type = "text" name = "armyid"> </td></tr>
		<tr> <td> <br> In/Out </td> <td> <br> : </td>
                     <td> <br> <select name = "inout">
                                <option value = "In"> In </option> 
                                <option value = "Out"> Out </option> 
                           </select>  
                       </td>
                </tr>
		<tr> <td> <br> Type of Leave </td> <td> <br> : </td>
		<?php
		echo("<td><br> <select name='type' id='type' />");
		echo("<option value='#'>-Select-</option>");
		while ($row = $sql->fetch()) {
		        $m=$row['type'];
		        echo("<option value=$m>$m</option>");
		}
		echo("</select></tr>");
		?>

        	<tr><td> <br> Date </td> <td> <br> : </td> <td> <br>  <input type = "date" name = "date">  </td></tr>
		<tr colspan = "3">
	   		<td> <br> <input type = "submit" value = "Submit"> </td>
		</tr>
	    </table>
	    </form> 
	   </div>
<?php

?>

ZeroDay Forums Mini