Skip to main content
November 25, 2007
Question

HELP with Checkboxes on Flash 8 Form

  • November 25, 2007
  • 3 replies
  • 294 views
Using Flash 8: Everything works with the input text fields on forms. Now, there are two forms that use checkboxes!? One box is yes and one box is no. Whether a yes or a no, none appear in the email. Now, the other form has six checkbox choices plus a choice of a yes or no checkbox.

Not sure how to do the checkboxes in Actionscript. .I have the checkboxes on the same layer as the FORM. I have spent 4 hours figuring why checkboxes do not appear in email. HELP!
Both forms though do show title and typed information in email. The only thing the forms do not show are the checkbox choices.

What appears in email:

name / business: Business Name
street: 90 Crossing
city, state, zip: Somewhere, US 00000
phone: 772-555-5555
email: testing@comcast.net
comments: Email

From: <testing@comcast.net>
Reply-To: testing@comcast.net
Return-Path: testing@comcast.net


THE PHP for the SALT FORM:

<?php

$SendTo .= "art.design@comcast.net";
$subject .= "Salt Form Reply";

$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];

$message .= "name / business: " . $_POST["namebus"]. "\r\n";
$message .= "street: " . $_POST["address1"]. "\r\n";
$message .= "city, state, zip: " . $_POST["address2"]. "\r\n";
$message .= "phone: " . $_POST["phone"]. "\r\n";
$message .= "email: " . $_POST["email"]. "\r\n";
$message .= "comments: " . $_POST["comments"]. "\r\n";

$checkbox = ($_GET['mycheckbox'] == 1);

mail($SendTo, $subject, $headers, $message, $checkbox);

header('Location: http://ecowaterpb.com/thanks.html');

?>
This topic has been closed for replies.

3 replies

Damon Edwards
Inspiring
November 26, 2007
First, why don't you look up CheckBox in the flash help docs. It is pretty self explanatory.
Inspiring
November 26, 2007
I'm not sure how you're sending the value to PHP but one thing is that the
selected property of a checkbox component is true or false - not 1 as you
have in your PHP. You might do something like:

myCheckValue = myCheckBox.selected ? 1 : 0;

to insure you're getting the value you expect in PHP.

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


November 25, 2007
And no one knows about checkboxes on forms???? I need help on those....not sure about the Actionscript 1.0/2.0.