2014-07-16 1 views
-1

나는 html로 형식을 만들었지 만 send buttom이 작동하지 않는 중요한 장치 여야합니다.왜 송신 buttom html로 작동하지 않습니다

형식 데이터를 내 이메일로 보내고 싶습니다.

<!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>Contactos</title> 

<style> 

#container{ 
top: 0; 
left: 0; 
width:1280px; 
height:1024px; 
} 
#header{ 
background-color:#60F; 
height:150px; 

} 

#content{ 
height:800px; 
width:1280px; 
float:left; 
background-color:#60F; 
} 
#footer{ 
background-color:#60F; 
height:74px; 
clear:both; 
text-align:center; 
} 


</style> 

</head> 

<body> 

<div id="container"> 
<div id="header"> 
<h1 align="center">&nbsp;</h1> 
<h1 align="center">Contacto</h1> 

<p align="center">Si deseas comunicarte con nosotros, por favor llena este formulario: 
</p> 
</div> 

<div id="content"> 
<p>&nbsp;</p> 
    <p>&nbsp;</p> 

    <form action="mailto:[email protected]" 
    method="post" enctype="text/plain"> 


    <p align="center">Nombre: <br> 
    <input type="text" name="nombre" size="30" 
maxlength="100"> 
    <br> 
    </p> 
    <p align="center">&nbsp;</p> 
    <p align="center">Email <br> 
    <input type="text" name="email" size="30" 
maxlength="100" value="@"> 
    <br> 
    </p> 
    <p align="center">&nbsp;</p> 
    <p align="center">Tema: <br> 
    <select name="utilizacion"> 
     <option value="1">Comentarios o Sugerencias 
     <option value="2">Consultas 
     <option value="3">Quejas 
     <option value="4">Ideas 
     </select> 
    <br> 
    </p> 
    <p align="center">&nbsp;</p> 
    <p align="center">Mensaje: <br> 
    <textarea cols="30" rows="7" 
name="mensaje"></textarea> 
    <br> 
    </p> 
    <p align="center">Enviarte una Copia? </p> 
    <div align="center"> 
     <input type="checkbox" name="recibir_info"> 
     <br> 
     <br> 
     </p> 

이 송신 buttom의이다 :

내 코드입니다.

그리고 코드

<br> 
     <br> 
     <input type="reset" value="Reset" />  
    </div> 
    </form> 

    <p align="center">&nbsp;</p> 

    <p align="center"> 
    <a href="index.html"> 
     <input type="submit" name="volver" id="volver" value="Volver" onclick="window.location.href='C:\Users\Charlie\Documents\TODO" /> 
    </a></p> 

</div> 

<div id="footer">Copyright © Siri.com</div> 
</div> 

</body> 
</html> 
+0

제출 버튼 다음에 양식 태그를 닫아야하지만 어떤 HTML이든 예상대로 작동하지 않습니다. 올바르지 않습니다. –

답변

0

이메일에 데이터를 보내려면 별도의 PHP 스크립트를 만들어야합니다. mailto: 전에 @Quentin에 언급 된대로 잘 지원되지 않습니다.

PHP 메일러를 사용하여 이메일에 데이터를 보낼 수 있습니다. 여기에 대한 자세한 정보가 있습니다 https://github.com/PHPMailer/PHPMailer

관련 문제