# Need help in php contact form

**URL:** <https://forum.kirupa.com/t/need-help-in-php-contact-form/181088>\
**Category:** Uncategorized\
**Created:** [March 6, 2006, 11:42am UTC](https://forum.kirupa.com/t/need-help-in-php-contact-form/181088 "2006-03-06T11:42:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthil](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@senthil](https://forum.kirupa.com/u/senthil)\
**Post date:** [March 6, 2006, 11:42am UTC](https://forum.kirupa.com/t/need-help-in-php-contact-form/181088/1 "2006-03-06T11:42:09Z")

</div>

Hi everyone,

Iam very much new to this group and i am glad to be a part of it. As a beginner i found it very useful and informative.

Ok, i need a clarification in php contact form…can u plz tell me how to set the check box mandatory. In my form i have redirected the user to a thanks pages using header function after he submits.

The problem is if the user doesn’t check the check box it display and error

**"Warning** : Invalid argument supplied for foreach() in …"

so plz help me to sort of it

Thnks and Rgds
