Hola a todos
Necesito vuestra ayuda. He creado un formulario con este archivo php:
<? $subject = "Contactar con SCM " . "{$_POST['nombre']}" . "{$_POST['apellidos']}" . "{$_POST['empresa']}"; $headers = "From: {$_POST['nombre']}" . "{$_POST['apellidos']}" . "{$_POST['empresa']}" ."\n"; $headers.='Content-type: text/html; charset=iso-8859-15'; $message="Estos son nuestros datos:<br><br>" . "Nombre: " . "{$_POST['nombre']}" . "\r\n<br>" . "Apellidos: " . "{$_POST['apellidos']}" . "email: " . "{$_POST['email']}" . "Telfono: " . "{$_POST['telefono']}" . "\r\n<br>" . "Empresa: " . "{$_POST['empresa']}" . "\r\n<br>" . "Nif-Cif: " . "{$_POST['nifcif']}" . "\r\n<br>" . "Quiero informacion: " . "{$_POST['info']}" . "\r\n<br>"; mail("[email protected]", $subject, " <html> <head> <title>Quiero mas informacion sobre </title> </head> <body> <br> ".$message." </body> </html>" , $headers); echo ("GRACIAS POR ENVIAR SU PETICION!"); ?> <script> resizeTo(300, 300); </script>
El problema es que al rellenar el formulario solo llega el nombre, el email y el teléfono. Alguien puede ayudarme, yo no se mucho de esto y no veo el fallo. Muchas gracias