# Sending e-mail with check-boxes

**URL:** <https://forum.kirupa.com/t/sending-e-mail-with-check-boxes/180655>\
**Category:** Uncategorized\
**Created:** [March 2, 2006, 9:58am UTC](https://forum.kirupa.com/t/sending-e-mail-with-check-boxes/180655 "2006-03-02T09:58:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![x2pher](https://avatars.discourse-cdn.com/v4/letter/x/a9adbd/32.png) [@x2pher](https://forum.kirupa.com/u/x2pher)\
**Post date:** [March 2, 2006, 9:58am UTC](https://forum.kirupa.com/t/sending-e-mail-with-check-boxes/180655/1 "2006-03-02T09:58:50Z")

</div>

Hello,

I know it’s been a few threads about this already, but I haven’t really got an answer. I have followed the tutorial **Flash-Based Email Form Using PHP** here at Kirupa, but now I want to add checkboxes to it. How do you do that? Can anyone help me? What kind of AS code and PHP code can I use to get the components to work?

This is the code for the submit-button:

> 

on (release) {  
// send variables in form movieclip (the textfields)  
// to email PHP page which will send the mail  
form.loadVariables(“email.php”, “POST”);  
}

The code attached to the form:

> onClipEvent(data){  
> // show welcome screen  
> \_root.nextFrame();  
> }

And finally, the php code:

> \<?php

$sendTo = “[mail@example.com](mailto:mail@example.com)”;  
$subject = “My Flash site reply”;

$headers = “From: " . $\_POST[“firstName”] .” “. $\_POST[“lastname”] . “\<” . $\_POST[“email”] .”\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-path: " . $\_POST[“email”];

$message = $\_POST[“message”];

mail($sendTo, $subject, $message, $headers);

?\>

I truly appreciate all the help I can get!🙂
