This is freaking me out.
I've got a form. Two buttons.
<button type="submit" name="submit" value="add">Add</button>
<button type="submit" name="submit" value="edit">Edit</button>
the "add" button is clicked...
In all browsers, other than IE, we see
$_POST = Array ( [submit] => add )
but in IE, we see
$_POST = Array( [submit] => edit )
IE always grabs the last button value.
If you try to rename the buttons, like so...
<button type="submit" name="add" value="add">Add</button>
<button type="submit" name="edit" value="edit">Edit</button>
IE returns both values in the post...
$POST = $POST = Array( [add] => add, [edit]=> edit)
Am I the only one encountering this. I've googled all over, and I can't find anyone else talking about this behavior.