Posted by samudasu on 02/27/06 09:43
Think about this. If you click on your link
"<a href="update.php?id=<? echo $id; ?>">Update Event?</a>", the only
thing passed to update.php will be the id. You can't do an update with
an id alone. The same thing goes for the form. The values "title",
"datetime", and "desc" are passed to update.php but id isn't unless you
specify a hidden field in your form with the value of id.
<input type="hidden" name="id" value="<? echo $id; ?>" />
Navigation:
[Reply to this message]
|