Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / November 2006



Tip: Looking for answers? Try searching our database.

Flash email form woes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
khat_b - 23 Nov 2006 01:52 GMT
I am almost there; but, now I'm completely stumped!!!
I have been trying to figure out this part of the problem for the better part
of the day; but no joy! Please help!

I found this awesome tute:
http://www.thegoldenmean.com/technique/flashMX_mailform1.html (thanks Steve
Nelson!).
To which I made some changes resulting in this form:

http://www.spectrumscene.com/testingForm.html

The problem is 2-fold:
1. After sending the data, the movie clip keeps processing and does not move
to the next frame.
2. I receive the data via email; but, data from the ComboBox field is always
"undefined"

I tested the php script w/ this html file
(http://www.spectrumscene.com/frent.html) and it processes fine. It's when I
try to process it from the flash player that I run into problems.

I am using Flash 8 professional and have attached the php script below.
Fla is here: http://www.spectrumscene.com/mailForm2.fla

I have no idea what the problem is or how to move beyond this point.
Can someone please assist??
Thanks in advance.

<?php

//create short variable names
$name=$_POST['name'];
$email=$_POST['email'];
$subject='Inquiry from Spectrum Scene.com';
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$phone=$_POST['phone'];
$whichproperty=$_POST['whichproperty'];
$counter=$_POST['counter'];
$comments=$_POST['comments'];
$name=trim($name);
$email=trim($email);
$counter = date("l jS \of F Y h:i:s A");
$message="name: ".$name."
email: ".$email."
address: ".$address."
city: ".$city."
state: ".$state."
zip: ".$zip."
phone: ".$phone."
whichproperty: ".$whichproperty."
comments: ".$comments."
counter: ".$counter."
";
$message=StripSlashes($message);

/*#########
modify the next line with your own email address
###########*/

$toaddress='myemail@mycompany.com';

if (preg_match
("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|a
e|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bi
z|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|
cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|f
o|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu
|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|l
a|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt
|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org
|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|
sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt
|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|((
[0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0
-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $email)) {
    mail($toaddress,$subject,$message,"From: $name <$email>\r\nReply-To:
$email\r\nReturn-Path: $email\r\n");
     //clear the variables
     $name='';
     $email='';
     $subject='';
     $address='';   
    $city='';
    $state='';
     $zip='';
    $phone='';
    $whichproperty='';
     $comments='';
    $counter='';
    $message='';
     echo "response=passed";
    } else {
        echo "response=invalid";
        exit;
    }
   
?>
khat_b - 23 Nov 2006 14:14 GMT
Got an answer for this in the Actionscript forum.
Thanks Marghoob Sulemaan!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.