update form does NOTHING.
Posted: Tue Feb 07, 2006 4:30 pm
i'm having the darnedest time figuring out why this update form does NOTHING... can someone look and see if they see something glaring?
(note, i trimmed the massive code down to fit here):
(note, i trimmed the massive code down to fit here):
Code: Select all
if($_POST['bpress']=="update")
{
$sql = "UPDATE it_issues SET
Issue_Read = '".$_POST["read"]."'
WHERE Issue_ID=".$issueID;
if(!$result = mysql_query($sql))
{
echo mysql_error();
}
exit;
}
<form name="nav" method="post">
<input type="hidden" name="bpress" value="">
<?php
$read = "1";
?>
<input name="read" type="hidden" class="text" id="read" value="<? echo $read; ?>" />
<input name="update" type="button" onclick="return validate(this.form);" value="Update" /></td>
<input name="back" type="button" onclick="window.location.href='list_it.php';" value="Back" /> </td>
</form>