I need help in PHP form

How do I make an HTML FORM to work in PHP? Am new in PHP, I designed a website with a what you see is what you get software (WYSIWYG) but now I need a form in PHP, I have written the HTML form and I have put the contact PHP script as the value for the action attribute. I have also written the code for the submitted date using PHP $_GET and $_POST. My problem is getting the mail function to work. How do I send the data to the mail using the mail function?
