Need php code for "onsubmit" button in web site

IN PROGRESS
Bids
40
Avg Bid (USD)
$34
Project Budget (USD)
$30 - $50

Project Description:
Hello. I need a code written for my website. I just need the submit button to not "mailto" instead when the person hits submit the detail entries will be cleared, a message below the button will say "your message has been sent successfully", and all the details are sent to my gmail.

Skills required:
Graphic Design, HTML, Javascript, PHP, Website Design
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 50
in 1 days
$ 50
in 3 days
$ 50
in 2 days
$ 50
in 0 days
$ 40
in 0 days
Hire kev2me
$ 30
in 2 days
$ 40
in 1 days
Hire randdythea
$ 30
in 1 days
$ 30
in 1 days
$ 31
in 1 days