Usually forms come in two parts, the actual HTML and a server side processing script in PHP. The HTML is how everything is displayed and where the information is input through textboxes, checkboxes, etc.. Then the values input are passed to the PHP page and processed i.e. emailed to you, posted in a spreadsheet or database etc.
Hope that gives you an idea on where to start.