# Checkboxes in forms

**URL:** <https://forum.kirupa.com/t/checkboxes-in-forms/217042>\
**Category:** flash\
**Created:** [February 22, 2007, 3:37pm UTC](https://forum.kirupa.com/t/checkboxes-in-forms/217042 "2007-02-22T15:37:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marriedman624](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@marriedman624](https://forum.kirupa.com/u/marriedman624)\
**Post date:** [February 22, 2007, 3:37pm UTC](https://forum.kirupa.com/t/checkboxes-in-forms/217042/1 "2007-02-22T15:37:20Z")

</div>

I need some help, I have a form and I can’t figure out how to get my checkboxes to be incorporated into the form (I have two with instance names phone\_check and email\_check). Here is the actionscript on my submit button:

on (release) {  
var nLv:LoadVars = new LoadVars();  
nLv.name = name.text;  
nLv.phone = phone.text;  
nLv.email = email.text;  
nLv.hear = hear.text;  
nLv.comments = comments.text;  
nLv.sendAndLoad(“form.php”,nLv,“GET”);

gotoAndPlay (16);

and my PHP script is:

\<?php  
$name = $\_GET[‘name’];  
$phone = $\_GET[‘phone’];  
$email = $\_GET[‘email’];  
$hearabout = $\_GET[‘hear’];  
$comments = $\_GET[‘comments’];

$to .= "XXXX@yahoo.com";  
$subject = “Website Contact”;  
$msg .= "Name: $name

";  
$msg .= "Phone: $phone

";  
$msg .= "Email: $email

";  
$msg .= "How did you hear about: $hearabout

";

$msg .= "Comments: $comments

";  
$headers .= “From: $name \<$email\>”;  
mail($to, $subject, $msg, $headers);  
?\>

All the text fields work fine, but I am trying to figure out the checkboxes?

Also, is it possible to give a check box a label but not have it show up in the movie?

Thanks
