# Problems with php contact form

**URL:** <https://forum.kirupa.com/t/problems-with-php-contact-form/271761>\
**Category:** flash\
**Created:** [September 28, 2008, 12:16am UTC](https://forum.kirupa.com/t/problems-with-php-contact-form/271761 "2008-09-28T00:16:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![celicasaur](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@celicasaur](https://forum.kirupa.com/u/celicasaur)\
**Post date:** [September 28, 2008, 12:16am UTC](https://forum.kirupa.com/t/problems-with-php-contact-form/271761/1 "2008-09-28T00:16:19Z")

</div>

Hi guys, right I followed the php contact form to what I believe to be an almost exact replica. The form text is in a htm file and the php code is in a file called mailer.php

When the form is submitted, I get an error screen that says all of this:

[SIZE=1]\ ***"Notice** : Undefined index: radio in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **9**

**Notice** : Undefined index: drop\_down in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **10**

**Notice** : Undefined index: check in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **12**

**Warning** : Invalid argument supplied for foreach() in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **12**

**Notice** : Undefined variable: check\_msg in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **16**  
Data has been submitted to [mr-celica@hotmail.co.uk](mailto:mr-celica@hotmail.co.uk)!  
**Warning** : mail() [_[/SIZE][[SIZE=1][COLOR=#0066cc]function.mail[/COLOR][/SIZE]](http://www.bluechipmc.co.uk/function.mail)[SIZE=1]_]: “sendmail\_from” not set in php.ini or custom “From:” header missing in **\NAS40ENT\domains\b\[bluechipmc.co.uk](http://bluechipmc.co.uk)\user\htdocs\mailer.php** on line **19"** \*[/SIZE]  
_**[SIZE=1][/SIZE]**_  
Here is a link to the page itself so you can see for yourself:  
[http://www.bluechipmc.co.uk/message.htm](http://www.bluechipmc.co.uk/message.htm)  
Just enter anything in the fields and click submit to see the error page.

Please can somebody here help? I’ve tried a search on the forum, but most of the threads seem to be about making this work in a flash file.

Cheers, Ron
