I have a form in a block which works just as expected in Firefox but fails in IE. I believe it is a quirk in the way IE passes form data, but I'm not wholly sure.
This bit is the basis of the form HTML, much simplified. As you can see, I use a series of images as the 'submit' buttons. There are four in total, all with the same name 'vote' but with different values.
<input type="hidden" name="cid" value="2" />
<div id="vote_images">
<input type="image" name="vote" value="1" src="/img/1.png" />
<input type="image" name="vote" value="2" src="/img/2.png" />
<input type="image" name="vote" value="3" src="/img/3.png" />
<input type="image" name="vote" value="4" src="/img/4.png" />
</div>
</form>
So I am expecting a 'cid' field as well as a 'vote' field, both with numerical values. In the action script, I have the following two lines:
$cid = required_param('cid', PARAM_INT); $vote = required_param('vote', PARAM_INT);
In Firefox, the form is processed normally, but in IE the user gets the error "A required parameter (vote) was missing", which makes me think it's not being passed properly. I'm wondering if this could be due to having four form elements with the same name, which Ffx accepts but IE does not? Only one of them is clicked on per form.
Help and pointers greatly appreciated.