<form method="post">
<input type="submit" name="save" value="Submit 1">
<input type="submit" name="cancel" value="Submit 2">
</form>
<?php
if (isset($_POST['save'])) {
// code
}
else if (isset($_POST['cancel'])) {
// code
}
?>
<input type="submit" name="save" value="Submit 1">
<input type="submit" name="cancel" value="Submit 2">
</form>
<?php
if (isset($_POST['save'])) {
// code
}
else if (isset($_POST['cancel'])) {
// code
}
?>
No comments:
Post a Comment