Trying to detect when a user clicks "Cancel" but the $_POST on using var_export($_POST) outputs:-
array (
'descr' => '',
'formSubmitted' => '1',
'backButton_x' => '36',
'backButton_y' => '15',
)
Notice: Undefined index: backButton in /home/mholt/development/BusinessPortico/class/requestHandler.class.php on line 81
Here is the HTML:-
<form method="post" class="cssform_dialog" enctype="multipart/form-data">
<div id="dialogContent"></div>
<div id="dialogFooter">
<div class="wrapperLeft"><input type="image" name="nextButton" id="nextButton" value="Yes" src="../new_assets/images/button-save.jpg"/></div>
<div class="wrapperRight"><input value="Cancel" name="backButton" type="image" src="../new_assets/images/button-cancel.jpg"/></div>
<input type="hidden" name="formSubmitted" value="1"/>
</div>
</form>