I need to know if 'input submit button' is clicked.
I tried following php codes, and clicked a save_progress button, but it echos 'EMPTY'.
Would you please let me know how to know it the button is clicked or get the value of the button?
Existing code (submit page):
<form class="acfef-form -submit" action="" method="post" autocomplete="disableacf" novalidate="novalidate" data-widget="fc8926d" id="acf-form-fc7226d18999" enctype="multipart/form-data">
<div class="1"></div>
<div class="2"></div>
<div class="3">
<div class="3-1"><input class="acfef-submit-button" type="submit" value="Save" data-state="publish"></div>
</div>
<div class="4"><input class="save-progress-button" name="save_progress" type="submit" data-state="revision" value="Revision"></div>
</form>
php codes I tried in the submit page:
if(isset($_POST['save_progress'])) {
echo 'NOT EMPTY ';
}else{
echo 'EMPTY ';
}
if (empty($_POST['save_progress'])){
if( array_key_exists( 'save_progress', $_POST ) ){
Thank you.