Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/08/2004, 19:27
Avatar de swishts
swishts
 
Fecha de Ingreso: noviembre-2002
Ubicación: Uruguay
Mensajes: 209
Antigüedad: 21 años, 5 meses
Puntos: 0
Enviar variables de formulario a txt, miren el code.

Código PHP:
<?
//TOMAMOS TODAS LAS VARIABLES DEL FORMULARIO
foreach($_POST as $nombre_campo => $valor){
   
$asignacion "\$" $nombre_campo "='" $valor "';";
   eval(
$asignacion);
}
//DEFINIMOS EL NOMBRE DEL ARCHIVO DE TEXTO
$archivo "datos.txt";
//CODIGO PARA ESCRIBIR EN EL ARCHIVO
if ($id fopen ($archivo"w+"))
    
fputs ($id$valor);
fclose ($id)
?>
Que tengo mal que no me toma los datos del formulario y lo manda al datos.txt que tengo en el servidor?

Gracias de antemano...