Tema: ayuda + form
Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/04/2008, 07:22
Avatar de ACX_POISON
ACX_POISON
 
Fecha de Ingreso: abril-2008
Ubicación: Talca-Chile
Mensajes: 750
Antigüedad: 16 años, 1 mes
Puntos: 7
Re: ayuda + form

estoy utilizando un codigo de prueba para ver como funciona, es este:

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Prueba</title>
</head>

<body>
<?
if(!$_POST)
{
echo'
<form id="form1" name="form1" method="post" action="prueba.php"><fieldset><legend>
1</legend>
<label>
<input type="text" name="campo" />
</label>
<p>
<label>
<input type="submit" name="Submit" value="Enviar" onclick="return confirm("Esta seguro de borrar?");"/>
</label>
</p>
</fieldset>
</form>';
}
else
{
extract($_POST);
echo"$campo<br>";
}
?>
</body>
</html>