| Current Path : /var/www/html/venkat/electivejan2016/ |
| Current File : /var/www/html/venkat/electivejan2016/seditbasket.php |
<?php
include("sedit.php");
//$truncated = substr($s, 1, 2);
$basket = addslashes($_POST['basket']);
?>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="seditbasketstore.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Edit your Preference for <font color="red"> Basket <?php echo($basket); ?> </font> </strong></td>
</tr>
<tr>
<?php
$quer1=mysql_query("select subject from matrix where discipline='$truncated' and basket='$basket'") or die("Invalid Access !!!");
$i=0;
while ($row = mysql_fetch_array( $quer1 )) {
$m[$i]=$row['subject'];
$i++;
}
for ( $j = 0; $j <= $i-1; $j++)
{
$sj = $j;
$sj = $sj+1;
echo("<td width='200'> Preference $sj</td> <td width='30'>:</td>");
echo("<td width='400'><select name=$sj id='subject' />");
echo("<option value='#'>-Select-</option>");
for ( $k = 0; $k <= $i-1; $k++)
{
echo("<option value=$m[$k]>$m[$k]</option>");
}
echo("</select></td> </tr> <tr>");
echo("<center>");
}
?>
</tr>
<tr>
<input type="hidden" name="basket" value=<?php echo($basket); ?>></td>
<td colspan = "3"><br><input type="submit" value="Submit"><font color ="red"> If you opt an elective more than once then you cannot edit. </font></td>
</tr>
</table>
</form>
</table>