"Code for button"? I don't think you need exactly, this, but people should get answers their questions deserve.
<form ...>
<input type="submit" value="Submit">
</form>
Please see:
http://www.w3schools.com/Tags/att_input_type.asp[
^].
If you do it this way, all data in the form (per attributes
name
and their values) will be automatically put to a single HTTP request and sent to the server side. This is how the Web form work. This is your responsibility to process form data on the server side.
As to e-mails, be extra careful. This is a very vulnerable points. One wrong move, and your server host will be turned into a zombie sending spam, or something like that, in no time. Injection of malicious code in form data is just a kid's play. Don't even play with the idea of sending any data as is. To avoid the exploit, please see my past answer:
unable to send mail , it showing the error in below code .[
^].
—SA