I\'m just learning javascript and php. I created a contact form and I\'d like the submit button to accomplish two things when I press it:
if you need to do something before submitting data, you could use form's onsubmit.