I can't define existing button in php although it exists. It gives me an error: Undefined array key "delete". Here's my html code:
<form action="receive.php" method="post">
<button type="submit" id="delete-product-btn" class="rightBTN" name="delete">MASS DELETE</button>
</form>
And here's my php code:
<?php
$delete = $_POST['delete'];
?>
I don't know why it won't work. Is there a typo or something that I don't know about.