Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/10/2004, 12:43
Avatar de gds
gds
 
Fecha de Ingreso: febrero-2003
Mensajes: 31
Antigüedad: 21 años, 2 meses
Puntos: 0
digamos que quieres un formulario así en la página "form.html":
Código HTML:
<form action="parser.php" method="post">
Tu nombre: <input name="nombre" type="text" />
<input type="submit" value="Envía tu nombre" />
</form> 
Ese formulario va a un script de PHP ("parser.php") que muestra el nombre:

Código PHP:
<?php

import_request_variables
("p");
if (isset(
$nombre)) {
echo 
"Tu nombre es: $nombre";
}
else {
echo 
"No escribiste ningún nombre.";
}

?>
Esto es muy simple, probablemente quieras complicarla un poco, como agregarle todo lo que es formato, layout, etc. Pero recuerda que la página donde está el script en php debe terminar en ".php".


espero que te sirva de algo, al menos para pensar qué vas a hacer.

Andrés
__________________
It is not enough for a handful of experts to attempt the solution of a problem, to solve it and then to apply it. The restriction of knowledge to an elite group destroys the spirit of society and leads to its intellectual impoverishment. - Albert Einstein