# Adding new field to form and PHP

**URL:** <https://forum.kirupa.com/t/adding-new-field-to-form-and-php/139639>\
**Category:** Uncategorized\
**Created:** [March 4, 2005, 11:03am UTC](https://forum.kirupa.com/t/adding-new-field-to-form-and-php/139639 "2005-03-04T11:03:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerryj](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jerryj](https://forum.kirupa.com/u/jerryj)\
**Post date:** [March 4, 2005, 11:03am UTC](https://forum.kirupa.com/t/adding-new-field-to-form-and-php/139639/1 "2005-03-04T11:03:40Z")

</div>

Hi,

I am using this script for my first simple mailform:

> \<?php  
> $sendTo = “[blabla@winder.demon.nl](mailto:blabla@winder.demon.nl)”;  
> $subject = “Videoproducties”;

$headers = “From: " . $\_POST[“name”] .” \<" . $\_POST[“email”] ."\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];  
$message = $\_POST[“message”];  
mail($sendTo, $subject, $message, $headers);  
?\>

I have added an extra input text field to my flash form, and gave it the var name ‘question’ . How should i add this in the PHP script??

Another question is:  
Can I add a checkbox to a form like this?  
How should I add that to the PHP script (I can’t give a var name to the checkbox in Flash, can I?)

Thank you very much!

Jerryj.
