This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > November 2007 > Flash Form: Why only titles coming to email





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Flash Form: Why only titles coming to email
Mary Alice

2007-11-06, 3:14 am

Regarding Flash form: For example, when someone inputs information on the
form, the information typed should appear next to the titles that will come
into my email. But the typed information does not appear, only the titles come
into my email. Hopefully, someone can solve the problem. I think it is an
actionscript problem.
I also want my thank you page to appear after viewer clicks the Submit button.
But that does not appear. Why?

Here is my current scripting for the Actionscript and PHP. See the scripting
below.

MaryAlice
art.design@comcast.net

Attach Code

Flash 8 ActionScript 1.0/2.0 used for FORM:

onClipEvent(data){
_root.nextFrame();
}

--------------------

Flash 8 ActionScript 1.0/2.0 used for SUBMIT button:

on (release) {
this._parent.loadVariables("analysisformphp.php", "POST");
gotoAndPlay("http://www.ecowaterpb.com/thanks.html")
}

-----------------------------------------
PHP script in separate file:

<?php

$SendTo .= "art.design@comcast.net";
$subject .= "My AnalysisForm Reply";

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

$message .= "household: " . $_POST["household"]. "\r\n";
$message .= "water supply: " . $_POST["water"]. "\r\n";
$message .= "softener: " . $_POST["soft"]. "\r\n";
$message .= "bottled water: " . $_POST["bottle"]. "\r\n";
$message .= "comments: " . $_POST["comments"]. "\r\n";
$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"];
$message .= "email: " . $_POST["email"];

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

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

?>


Sketchsta

2007-11-07, 10:14 pm

Hi Mary,

Do your input text fields have the correct names that the PHP is looking for?

eg...

household
water
soft
bottle
comments
namebus
address1
address2
phone
email

I dont know a whole lot about intergating PHP and Flash mailing forms, but I
remember when I started, I had this problem too.
It's worth a try.

hope this helps.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews