# Php email form with checkboxes

**URL:** <https://forum.kirupa.com/t/php-email-form-with-checkboxes/220761>\
**Category:** Uncategorized\
**Created:** [March 28, 2007, 11:59pm UTC](https://forum.kirupa.com/t/php-email-form-with-checkboxes/220761 "2007-03-28T23:59:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattjp18](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mattjp18](https://forum.kirupa.com/u/mattjp18)\
**Post date:** [March 28, 2007, 11:59pm UTC](https://forum.kirupa.com/t/php-email-form-with-checkboxes/220761/1 "2007-03-28T23:59:59Z")

</div>

Hey, I’ve looked over the other posts on this forum, and I am still having trouble with having checkboxes in my php email form. Could someone please help me write the code for it, I cant figure it out. I have one checkbox in the form right now. If I knew the code to send one variable from the checkbox to the php, I could probably figure out the rest. Thanks for any help!

Matt

this is the code on the send button:  
[INDENT]on (release) {  
form.loadVariables(“email.php”, “POST”);  
}

[/INDENT]heres the code on the first frame of the form movie:  
[INDENT]var chk\_val=false;  
\_global.remember=“NO”;  
chk1.setState(chk\_val);  
chk\_handler=function()  
{  
chk\_val=chk1.getValue();  
if( chk\_val == true )  
\_global.remember=“YES”;  
else  
\_global.remember=“NO”;  
}  
// now u use \_global.remember variable for sending it into ur php

function fun\_Test()  
{  
trace(“ok”);  
}  
[/INDENT]I dont know how to send the variable to the php now.
