HTML5 does not $_POST the ‘name’ attribute for image inputs.
I am trying to find an alternative so that my server-side validation checks can identify which submit button in the form has been clicked on. Can anyone offer suggestions.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It does post the name attribute but it posts as two variables, appending
_xand_yto the name. So this example:Will, when you click on the first button, result in values something like:
In your
$POSTarray.