Ver Mensaje Individual
  #7 (permalink)  
Antiguo 11/04/2008, 11:38
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Cambiar estado variable al clicar en un boton en php

Es independiente el Value del name mira puedes hacer esto:
Código HTML:
<input type="submit" name="boton[1]" value="Comprar" />
<input type="submit" name="boton[2]" value="Comprar 2" /> 
Luego en PHP:
Código PHP:
$boton $_POST['boton'];
$num array_keys$boton );
$num $num[0];
echo 
$num
Saludos.