<?php include("../../include/dbconnect.php");?>
<title>Bank Edit page</title>
<body  background="../../images/fibermat.gif">
<center>
<table cellpadding=0 cellspacing=4 width=590>
<tr background="../../images/g11line21.gif">
<td style="padding:3px;" colspan=2   ><font  face="Arial, Helvetica, sans-serif"><b>Edit Bank Details  </b></font></td>
</tr><tr valign="top"><td colspan=2>
<font >&nbsp;</font>
</td>
</tr>
</table>
<table border=0 cellpadding=3 cellspacing=4 width="590">
<form method="POST" action="update.php">

<?php

$result=mysqli_query($conn,"select distinct bankcode,bankname from banks where record = '$record' ") or die(mysqli_error());
$row=mysqli_fetch_row($result);
?>
<input type="hidden"  name="record1" value = <?php echo($record);?>></td></tr>

<tr><td><font  face="Arial, Helvetica, sans-serif"><b>Bank Code</b></font></td><td>           
 <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="code" value = <?php echo("'$row[0]'");?>></td></tr>

<tr><td><font  face="Arial, Helvetica, sans-serif"><b>Bank Name</b></font></td><td>           
 <input type="text"    onKeyPress="return event.keyCode!=13"   size="35" name="bankname" value =<?php echo("'$row[1]'");?>></td></tr>
 
 
    
<table cellpading=0 cellspacing=10 width= 50>
<tr><blockquote>
<td>
   <input type =submit name=submit value = "Update"></td> <td><input type =submit name=submit value = "Delete"></td></blockquote></tr>
</table>

</table>
<br><br><font size=1><center><a href= "index.html">Return to index page</center></font>
                                                                             
</body>
</form>

      
