# Mailer.php tutorial

**URL:** <https://forum.kirupa.com/t/mailer-php-tutorial/317620>\
**Category:** Uncategorized\
**Created:** [December 27, 2010, 8:07pm UTC](https://forum.kirupa.com/t/mailer-php-tutorial/317620 "2010-12-27T20:07:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agolubev](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@agolubev](https://forum.kirupa.com/u/agolubev)\
**Post date:** [December 27, 2010, 8:07pm UTC](https://forum.kirupa.com/t/mailer-php-tutorial/317620/1 "2010-12-27T20:07:23Z")

</div>

There is a mailer.php tutorial that has a code to  
check if the check box on the form is checked

Is there a way to do the same check if the text box next to the checkbox has any values or empty

sample code to check the checkbox

foreach($\_POST[‘check’] as $value) {  
$check\_msg .= "Checked: $value  
";  
}
