Código HTML:
<form method="post"> <input type="image" src="img/añadir_cesta.gif" onmouseover="this.src = 'img/añadir_cesta_on.gif'" onmouseout="this.src = 'img/añadir_cesta.gif'" name="ejemplo" value="carro" > <input type="image" src="img/recomendar.gif" onmouseover="this.src = 'img/recomendar_on.gif'" onmouseout="this.src = 'img/recomendar.gif'" name="ejemplo" value="recomendar" > </form>
Código PHP:
<? echo '-->'.$_POST['ejemplo']; ?>