Hey can someone give me a good example of Contact Us form where on submit it takes you to a new page saying thank you for contacting us. With validation and required fields.

Also W3C compliant will be a major help to me.

Pointing in the right direction would be much appreciated or a code been submitted so I can learn from it would help me a lot.