Comunidad de diseño web y desarrollo en internet online

Formulario de contacto con checkbox y menu list

Citar            
MensajeEscrito el 11 Feb 2010 04:12 pm
Hola a todos.

Como (o donde) hago un formulario de contacto en php que contenga checkboxes y listas de menu para ser enviado a un correo electronico.

GRACIAS

Por diego2008kat

95 de clabLevel



 

Diseñador

firefox
Citar            
MensajeEscrito el 11 Feb 2010 08:07 pm
Ya que se trata de PHP, lo muevo allí

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

opera
Citar            
MensajeEscrito el 12 Feb 2010 02:08 am
Para enviar un correo utiliza la función mail de PHP, es muy basico, si quieres mas opciones puedes utilizar la librería PHPMailer

Por camilob

4 de clabLevel



 

Colombia

chrome
Citar            
MensajeEscrito el 12 Feb 2010 04:25 pm
ok ... gracias.

Hay alguna guia de como hacerlo???

Por diego2008kat

95 de clabLevel



 

Diseñador

firefox
Citar            
MensajeEscrito el 15 Feb 2010 09:22 pm

camilob escribió:

Para enviar un correo utiliza la función mail de PHP, es muy basico, si quieres mas opciones puedes utilizar la librería PHPMailer


Hola tengo este formulario con el php:

Código HTML :

<html>
<head>
<title>Rellene el formulario</title>
</head>
<body>
<form name='formulario' id='formulario' method='post' action='pagina_mail.php' target='_self'>
<p>Nombre <input type='text' name='Nombre' id='Nombre'></p>
<p>Apellidos <input type='text' name='Apellidos' id='Apellidos'></p>
<p>E-mail <input type='text' name='E-mail' id='E-mail'></p>
<p><input type='radio' value='Hombre' name='Sexo' id='Sexo'>Hombre</p>
<p><input type='radio' value='Mujer' name='Sexo' id='Sexo'>Mujer</p>
<p align='center'>
<input type='submit' value='Enviar formulario'>
<input type='reset' value='resetear formulario'>
</p>
</form>
</body>
</html> 


Y llama a este php ....

Código PHP :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php
    //Copyright © McAnam.com
    
    function form_mail($sPara, $sAsunto, $sTexto, $sDe){
        
        if ($sDe)$sDe = "From:".$sDe;
        
        foreach ($_POST as $nombre => $valor)
             $sTexto = $sTexto."\n".$nombre." = ".$valor;
             
        return(mail($sPara, $sAsunto, $sTexto, $sDe));
    }
    
    //Ejemplo de como usar:
    if (form_mail("[email protected]",
                 "Activación de formulario",
                 "Los datos introducidos en el formulario son:\n\n",
                 "[email protected]"
                 )
        )
        echo "Su formulario ha sido enviado con exito";

?> 
</body>
</html>


Pero no me está llegando al correo ???? que será?????

Por diego2008kat

95 de clabLevel



 

Diseñador

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.