# How to add validation to Form Mailer

**URL:** <https://forum.kirupa.com/t/how-to-add-validation-to-form-mailer/304316>\
**Category:** programming\
**Created:** [February 5, 2010, 9:26am UTC](https://forum.kirupa.com/t/how-to-add-validation-to-form-mailer/304316 "2010-02-05T09:26:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TRixation](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@TRixation](https://forum.kirupa.com/u/TRixation)\
**Post date:** [February 5, 2010, 9:26am UTC](https://forum.kirupa.com/t/how-to-add-validation-to-form-mailer/304316/1 "2010-02-05T09:26:16Z")

</div>

Hi,

I am new to PHP and I found a really great tutorial here:

[http://www.kirupa.com/web/form\_mailer.htm](http://www.kirupa.com/web/form_mailer.htm)

I just need to know how to add validation to the fields to make sure people fill in the first 2 fields.

Any help on this would be greatly appreciated :thumb:

Thanks in advance
