The code inside "if(ISSET($_GET['del']))" isn't printing out, but if I remove the "if(ISSET($_GET['del']))" condition the form prints out. but if I remove the "if(ISSET($_GET['del']))" condition the form prints out.
if(ISSET($myrow))
{
@$n = $_GET['id'];
$myrow['firstname'];
$myrow['lastname'];
$myrow['id'];
if(ISSET($_GET['del']))
{
?>
<table class="form">
<form method="get">
<tr>
<td> Your Firstname: </td>
<td> <input type="text" value="<?php echo $myrow['firstname']; ?>"> </td>
</tr>
<br>
<tr>
<td> Your Lastname: </td>
<td> <input type="text" value="<?php echo $myrow['lastname']; ?>"> </td>
</tr>
</table>
<br> <br>
<input type="submit" value="Delete" name="delete" class="delete">
<input type="submit" value="Edit" name="delete">
</form>
<?php
}
}
<form method="get">
<input type="submit" value="Delete" name="del">
</form>
Aucun commentaire:
Enregistrer un commentaire