![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/10/2005, 00:16
|
| | Fecha de Ingreso: febrero-2004 Ubicación: España. Madrid
Mensajes: 454
Antigüedad: 21 años 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> |