html - How to a submit button to email contents of page (form) -


i trying set new website , have contact page submit button. should email contents of fields completed email address.

here code

maths question: 9 + 3 = ?

      <div style="width:430px; float:right;"><p><input type="text" name="user_answer" class="contact" /><input type="hidden" name="answer" value="4d76fe9775" /></p></div>       <div style="width:430px; float:right;"><p style="padding-top: 15px"><input class="submit" type="submit" name="contact_submitted" value="send"<a href="mailto:driveoffuk@gmail.com"></a>       </p></div> 

many thanks

this no means valid html. you're going this:

<form action="mailto:driveoffuk@gmail.com">     <div style="width:430px; float:right;"><p>          <input type="text" name="user_answer" class="contact" />          <input type="hidden" name="answer" value="4d76fe9775" />     </p></div>     <div style="width:430px; float:right;"><p style="padding-top: 15px">          <input class="submit" type="submit" name="contact_submitted" value="send" />     </p></div> </form> 

this though open email in browsers email client. if want actual send email, have send request server , make server send email.


Comments