I have an html form (method = "get", action = "cart.php") in which I use two buttons to send the same form.
echo '<input type="image" src="data/images/back.png" height="40px" id="back" name="back">';
echo '<input type="image" src="data/images/continue.png" height="40px" id="go" name="go">';
now, on the PHP side, I'd like to check which one of the button was clicked (the "go" button or the "back" button).
I've done:
if(isset($_GET['go.x']) == true)
{
echo 'form submitted using button GO';
}
else
{
echo 'form submitted using button BACK';
}
I use the 'go.x' variable name as the form is passing an "go.x" and "go.y" variables (the exact x,y positions inside the image button where the user clicked)
However, the isset() function always return false... how it could be? thanks