Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/repo2017sept/
Upload File :
Current File : /var/www/html/venkat/repo2017sept/extraspecific.php

<?php
	include ("extra.php");
	$type = addslashes($_POST['type']);
		
?> 
	<form method ="post" action = "submit.php">
<?php
		$count = 1;
		$quer2="select * from extra_nirf where count = ?";
                $sth = $link->prepare($quer2);
                $sth->execute(array($type));
		foreach ($sth->fetchAll() as $row)  {
			$count = $count + 1;
			$type1 = $row['type'];
?>
			<table width="60%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
			<b> Fill the <?php echo $type1; ?> Details </b>

<?php
			for ($i = 1; $i <= 7; $i++) {
				$d = "d".$i;
				$type = $row[$d];
				if($type == "") {
					break;
				}
		?>
        	<tr>
			<td width = "30%"> <?php echo $type; ?> <br> <br> </td>
			<td width = "10%"> : <br> <br></td>
			<td width = "60%">
<?php			if($type == "Start_From" || $type == "End") {
?>				<input type = "date", name = <?php echo strtolower($type); ?>> Format : YYYY-MM-DD
<?php			} 
			else if(strtok($type," ") == "Month") {
?>				<input type = "number", name = <?php echo strtolower($type); ?> min ="1" max = "12"> <br> If it comes in two months then give the highest month
<?php			} 
			else { 
?>				<textarea rows="2" cols="50" name = "<?php echo strtok(strtolower($type)," ");?>"></textarea> </td>
<?php			}
?>		</tr>
<?php
			}
		}
?>
			<br> <br> </td>
		</tr>

		<tr>
			<td width = "30%">  </td>
			<td width = "10%">  </td>
			<td width = "60%" > <input type = "hidden" value = "<?php echo strtok(strtolower($type1)," "); ?>" name = "decision">
			<div align="right"> <input type = "submit" value = "Submit"> </div> </td>
			
		</tr>

	</table>
	</form>