|  | ||||
| 
 | ||||
|  Como hago un formulario con el que por medio de un select vaya a distintos mails, por ejemplo, selecciono el select Colaborar y el mail se envia a '[email protected]', selecciono informacion y el mail se envia a '[email protected]'.  | 
|  | ||||
| 
 | ||||
|  Recibe el value del listbox (que podrá ser cualquiera), comparalo y actua de acuerdo a el valor recibido:  Código HTML: <select name="correo"> <option value="0">Soporte</option> <option value="1">Administración</option> </select> Código PHP:    
				__________________ ٩(͡๏̯͡๏)۶ "100 años después, la revolución no es con armas, es intelectual y digital" | 
|  | ||||
| 
 | ||||
|  Haber mi codigo html es:  Código HTML: <form action="send.php"> Nombre: <input type="text" name="nombre" size="15"> <br> Email: <input type="text" name="from" size="15"> <br> A: <select name="correo"> <option value="0">Leoj90</option> <option value="1">Walla</option> </select> <br> Asunto: <input type="text" name="subject" size="15"> <br> Comentario: <textarea rows="4" cols="10" name="coment"></textarea> <br> <input type="submit" value="Enviar" name="enviar"> </form> </html> Código PHP:   | 
|  | ||||
| 
 | ||||
|  también podría ser: (sin el switch) Código HTML: <select name="mail"> <option value="webmaster">Webmaster</option> <option value="colaboradorx">Colaborador 1</option> <option value="colaboradory">Colaborador 2</option> Código PHP:  Saludos   
				__________________ Keep f***ing learning Ask for f***ing help. Use f***ing spell check. Think about all the f***ing possibilities. | 
|  | ||||
| 
 | ||||
|  Creo que no captaste como jala la función mail. Código PHP:  http://mx2.php.net/manual/es/function.mail.php Saludos   
				__________________ Keep f***ing learning Ask for f***ing help. Use f***ing spell check. Think about all the f***ing possibilities. | 
 Este tema le ha gustado a 1 personas
Este tema le ha gustado a 1 personas