Log in

View Full Version : Multiple image submit button problem with IE



kerzo
04-07-2007, 09:53 PM
Hey guys,

Basically I have a few submit buttons for my website that all do certain things for example:


<input type="image" name="add" src="test.jpg" value="add" />
<input type="image" name="remove" src="test2.jpg" value="remove" />


....and to capture each specific button I have some PHP:


if($_POST['add']) {
//do add stuff here
} elseif($_POST['remove']){
//do remove stuff here
}



This works perfectly in Firefox however with IE7 it basically only captures the submit part and nothing else.

Just wondering if any of you guys had a work around for such a problem?

Thanks,
Ryan