Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/02/2007, 19:58
Fridureiks
 
Fecha de Ingreso: julio-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.304
Antigüedad: 18 años, 10 meses
Puntos: 6
Re: funcion sencilla no funciona

Probablemente porque estes haciendo algo mal, y mostrando el codigo de a trozos...

De movida, if ($enviar) deberia ser if($_POST["enviar"])


archivo.htm
Código HTML:
<form action="mis_datos.php" name="form1" method="post">
<input type="text" name="nombre">
<input type="submit" name="enviar" value="Enviar">
</form> 
mis_datos.php
Código PHP:
<?php
if($_POST["enviar"])
{
        echo 
"Mi nombre es: " $_POST["nombre"];
}else{
        echo 
"No llegaron variables POST";
}
?>
__________________
Federico.

Mi página: www.jourmoly.com.ar