Hi Ryan
[color=blue]
> <input type="image" src="button_in_cart.gif" border="0" alt="Add"
> title="Add" name="btn_cart" value="buy">
> <input type="image" src="modify.gif" border="0" alt="modify"
> title="modify" name="btn_modify" value="modify">
>
> In mozilla everything works great, but in Konqueror and MSIE the if
> statement I'm using to detect which button was press does not work.
>
> if (isset($HTTP_POST_VARS['btn_cart'])){ do stuff }
>
> Does anyone know how to fix this without resorting to javascript?[/color]
Where are you checking 'btn_modify'? The line above only checks
'btn_cart'
My preferred method would be:-
<input type="image" src="button_in_cart.gif" border="0" alt="Add"
title="Add" name="action" value="buy">
<input type="image" src="modify.gif" border="0" alt="modify"
title="modify" name="action" value="modify">
if ($action == "buy") {
// do buy bit here
}
elseif ($action == "modify") {
// do modify bit here
}
--
Colin
3A Web Hosting Team
http://www.3awebhosting.co.uk