So, I have this following snippet of code:
if (isset($_POST['type1'])) {
mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error());
}
if (isset($_POST['type2'])) {
mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error());
}
if (isset($_POST['type3'])) {
mysql_query("UPDATE table SET status = 1 WHERE id = '". $_GET['repid']."'", $c2) or die(mysql_error());
}
?>
<br />
<form method="get" action="">
<input type="hidden" name="pageid" value="plyrmgmt">
<input type="hidden" name="action" value="changeBan">
<input type="hidden" name="uid" value="<?php echo $hr_uid; ?>">
<input type="hidden" name="repid" value="<?php echo $rid; ?>">
<input type="submit" name="type1" value="Type1">
</form>
<form method="get" action="">
<input type="hidden" name="pageid" value="plyrmgmt">
<input type="hidden" name="action" value="changeMute">
<input type="hidden" name="uid" value="<?php echo $hr_uid; ?>">
<input type="hidden" name="repid" value="<?php echo $rid; ?>">
<input type="submit" name="type2" value="Type2">
</form>
<form method="get" action="">
<input type="hidden" name="pageid" value="plyrmgmt">
<input type="hidden" name="action" value="changeLock">
<input type="hidden" name="uid" value="<?php echo $hr_uid; ?>">
<input type="hidden" name="repid" value="<?php echo $rid; ?>">
<input type="submit" name="type3" value="Type3">
</form>
However, when I click the Submit button for Type1, Type2, or Type3, the query doesn't execute.
Can anyone help?
Thanks,
Mark