PHP mailer validation code needed

Hi I am using the PHP mailer form. What I would like to do is have a validation area that makes the person fill in all areas before it will send. Could some one help me out with this.

Also, will this help against a spammer?

Thanks.