Skip to main content
November 19, 2007
Question

Attn: David Stiller

  • November 19, 2007
  • 36 replies
  • 5987 views
Keith Glad suggested that I send a link to the form file and have done so but have not heard anything yet regarding such. Just emailed Chris Beech with the url.

http://www.ecowaterpb.com/fla%2c%20php.zip

Stuff I need help on: Thank you page should open and it does not now. The typed information should come to email and it does not only the word undefined next to titles. The title household does not show in the email.

Here is what is showing in email:

water supply: undefined
softener: undefined
bottled water: undefined
comments: undefined
name/business: undefined
street: undefined
city, state, zip: undefined
phone: undefinedemail: undefined

From: <undefined>
Reply-To: undefined
Return-Path: undefined


This topic has been closed for replies.

36 replies

November 26, 2007
BTW, I re-created the checkboxes inside Form's movie clip. Guess that was okay to do that?
November 26, 2007
Everyone is telling me different things. Thanks, but David Stiller is the one I am working with so I don't get confused.

Participating Frequently
November 26, 2007
did you look here??
http://flashden.net?ref=luke
November 24, 2007
Whatever the problem with the phone input area, I fixed it by doing a copy of the email text field box area. So that is solved. And I changed the instance name to phone_txt so not to be email_txt which belongs to the email text field area.

The only problem with this form are the CheckBoxes. Should they be on their own layer, away from the FORM, like that of the Submit Button?
And what kind of ActionScript do CheckBoxes have?

I know how to script The Submit Button and the Form but not the CheckBoxes.
November 25, 2007
Everything works with the input 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, one appear in the email. Now, one form has several checkboxes, several choices. Not sure how to do the checkboxes in Actionscript...I have the checkboxes on the same layer as the FORM.

All that comes in email is the input information and titles.

The contact form is the one with six checkbox choices. The input comes in email but nothing as to the checkbox choice. ?

See below for the salt form. So I know the title and title information comes in email. Both forms do show title and information in email. The only thing it does not show is the choice in checkbox.

for SALT FORM:

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

Here is 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');

?>




November 24, 2007
This form can be found by clicking on 'contact us' at the near bottom of website.
ecowaterpb.com.
And there is a problem with the phone input. When I begin to type in that field area, it does not allow enough height when typing. The others have ample height. What is the cause of that? Both input text field areas are the same height.
November 24, 2007
Thanks for all your help. Now, I have two more forms to do on the website. I plan to reference this first form that was just completed and works! Should be easy, I would think.
I will let you know on the outcome on those other forms when I do them.
Inspiring
November 21, 2007
Mary Alice,

> I just added a trace above the house line and it finally
> found an error there. BTW, they all seem to have the
> same error.

I don't know what you're tracing at this point. The last time you
showed code, you were tracing this:

my_lv.house = this._parent.form_mc.house_txt.text;
trace("value of house: " +
my_lv.water = this._parent.form_mc.water_txt.text;
trace("value of water: " +
// etc.

... in which case you're not supplying the trace() function's right
parenthesis, which means Flash isn't clear where your trace statement ends.

Look carefully at the following example to see how it differs from
yours:

my_lv.house = this._parent.form_mc.house_txt.text;
trace("value of house: " + this._parent.form_mc.house_txt.text);
my_lv.water = this._parent.form_mc.water_txt.text;
trace("value of water: " + this._parent.form_mc.water_txt.text);
// etc.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


November 21, 2007
I just added a trace above the house line and it finally found an error there.
BTW, they all seem to have the same error.

**Error** Scene=Scene 1, layer=SUBMIT button, frame=1:Line 19: Left side of assignment operator must be variable or property.
my_lv.house = this._parent.form_mc.house_txt.text;

**Error** Scene=Scene 1, layer=SUBMIT button, frame=1:Line 21: Left side of assignment operator must be variable or property.
my_lv.water = this._parent.form_mc.water_txt.text;
Inspiring
November 21, 2007
Mary Alice,

> Notice there is no mention of 'household' ! ?

No mention of anything, because of the error message! :)

Follow this format carefully:

my_lv.house = this._parent.form_mc.house_txt.text;
trace("value of house: " + this._parent.form_mc.house_txt.text);

Note that the only part you're tracing is a) a string ("value of house:
"), b) a plus sign, and c) the expression
this._parent.form_mc.house_txt.text, which is the object reference to the
text field -- the only text field -- that is causing you issues.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."


November 21, 2007
I put the same trace on all of them. See below. And no errors came about!? None.

on (release) {
my_lv = new LoadVars();
re_lv = new LoadVars();

my_lv.house = this._parent.form_mc.house_txt.text;
trace("value of house: " + this._parent.form_mc.house_txt.text);
my_lv.water = this._parent.form_mc.water_txt.text;
trace("value of water: " + this._parent.form_mc.water_txt.text);
my_lv.soft = this._parent.form_mc.soft_txt.text;
trace("value of soft: " + this._parent.form_mc.soft_txt.text);
my_lv.bottle = this._parent.form_mc.bottle_txt.text;
trace("value of bottle: " + this._parent.form_mc.bottle_txt.text);
my_lv.comments = this._parent.form_mc.comments_txt.text;
trace("value of comments: " + this._parent.form_mc.comments_txt.text);
my_lv.namebus = this._parent.form_mc.namebus_txt.text;
trace("value of namebus: " + this._parent.form_mc.namebus_txt.text);
my_lv.address1 = this._parent.form_mc.address1_txt.text;
trace("value of address1: " + this._parent.form_mc.address1_txt.text);
my_lv.address2 = this._parent.form_mc.address2_txt.text;
trace("value of address2: " + this._parent.form_mc.address2_txt.text);
my_lv.phone = this._parent.form_mc.phone_txt.text;
trace("value of phone: " + this._parent.form_mc.phone_txt.text);
my_lv.email = this._parent.form_mc.email_txt.text;
trace("value of email: " + this._parent.form_mc.email_txt.text);

re_lv.onLoad = function(success) {
{
getURL(" http://www.ecowaterpb.com/thanks.html");
}
}
my_lv.sendAndLoad("analysisformphp.php", re_lv, "POST");
}
November 21, 2007
And I just tested the form. Typed in something next to each title, including the household number. This is what has come in my email. Still no household number and typed information there. Sure is very strange. And the Trace said no errors. Hmmmmm.


----- Original Message -----
From: <ecowater@host.server20071.net>
To: <art.design@comcast.net>
Sent: Wednesday, November 21, 2007 12:18 PM
Subject: Analysis Form Reply


> water supply: City
> softener: Americana
> bottled water: Grocery store
> comments: Prefer email
> name/business: Business
> street: Somewhere
> city, state, zip: Somewhere again
> phone: 772-555-5555
> email: testing@comcast.net
>
>
> From: <testing@comcast.net>
> Reply-To: testing@comcast.net
> Return-Path: testing@comcast.net
November 21, 2007
Notice there is no mention of 'household' ! ?