Ver Mensaje Individual
  #14 (permalink)  
Antiguo 14/07/2007, 13:25
Avatar de deet
deet
 
Fecha de Ingreso: mayo-2005
Ubicación: Córdoba - Argentina
Mensajes: 269
Antigüedad: 21 años, 5 meses
Puntos: 1
Re: Ayuda Nececito Ayuda

Código PHP:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> 
<input type="text" name="name1"> 
<input type="text" name="name2"> 
<input type="submit" name="enviar" value="Enviar"> 
</form> 
<?php 
if( !empty( $_POST['enviar'] ) ) { 

echo 
"Primer Input: " . $_POST['name1']; 
echo 
"<br>"; 
echo 
"Segundo Input: " . $_POST['name2']; 

$archivo = "C:\log.html"; 
$manejador = fopen($archivo,"a") or die("Imposible abrir el archivo\n"); 
$fecha= date("r"); 
fwrite($manejador, "<HR>"."\r\n"); 
fwrite($manejador, "<b>".$_POST['name1']."Apellido: ".$_POST['name2']."<b><br>"."\r\n"); 
fclose($manejador); 

} 
?>
Aparentemente esta bien tu codigo, a ver vamos por partes, primero que nada habilita las lineas :

echo "Primer Input: " . $_POST['name1'];
echo "<br>";
echo "Segundo Input: " . $_POST['name2'];

aqui te imprime las variables $_POST?
Te muestra algun tipo de error?

saludos