Hi,
I'm creating a form and it has two
<input type="image" ...> buttons.
When the server gets this I can access them and check to see which was pressed by checking their x or y value.
If however the user has tabbed onto the submitting image then the values passed for x and y of the image are 0.
How can I check which button was clicked?
The value passed for the clicked image is actually 0 rather than no value at all.
(This can be seen in phpinfo(); as
HTTP_POST_VARS["next_x"]
HTTP_POST_VARS["next_y"])
No values (even 0's) are passed for the image that wasnt clicked.
Basically I want to check that a variable has a value of 0, not that a variable doesnt exist!
Any help appreciated,
Mal