Ver Mensaje Individual
  #13 (permalink)  
Antiguo 13/10/2005, 00:16
cyborg
 
Fecha de Ingreso: febrero-2004
Ubicación: España. Madrid
Mensajes: 454
Antigüedad: 20 años, 1 mes
Puntos: 0
yo lo tengo así:

prueba31.php
<html>
<head>
<title>ejemplo</title>
</head>
<body>
<?php

echo '
Ingese su nombre
<br />
<form method="POST" action="prueba32.php">
<input type="submit" name="enviar" value="Boton1" />
<input type="submit" name="enviar2" value="Boton2" />
</form>
';


?>
</body>
</html>

prueba32.php
<html>
<head>
<title>ejemplo</title>
</head>
<body>
<?php

if (isset($_POST["enviar"]))
{
echo "pulsado boton1";
}
if (isset($_POST["enviar2"]))
{
echo "pulsado boton2";
}



?>
</body>
</html>