Skip to main content
Known Participant
February 19, 2007
Question

getting PHP to communicate with FLASH

  • February 19, 2007
  • 13 replies
  • 77951 views
Im having some issues getting my flash contact form to communicate with my form.PHP I have been scouring tutorials but im just not getting what exactly goes into the PHP file. My variables are different from the tutorials I have seen. This is what I have

I guess my main question is how do I set up the PHP file so that it can work with my flash files?
This topic has been closed for replies.

13 replies

kglad
Community Expert
Community Expert
February 20, 2007
there's no email_to. fix that in $toaddress.
kglad
Community Expert
Community Expert
February 20, 2007
noone can help you unless they are familiar with that php script or they are willing to check that php script or you inform us what variables it expects.

because it doesn't look like anyone is doing the first two why don't you tell us. almost certainly it is spelled out in the comments of that php script, at it beginning, what variables it needs. what are they?
em_shomerAuthor
Known Participant
February 20, 2007
<?php
$eName=$_POST['visitor_name'];
$eEmail=$_POST['visitor_email'];
$subject = 'A Message from a Bodyshop client';
$eComments=$_POST['visitor_comments'];

$toaddress="my@email.com";

if(mail($toaddress,$subject,$message,"From: ".$name." <".$email.">")){
$Name='';
$Email='';
$subject='';
$Comm ='';
$Phone =";
echo "&response=passed";
} else {
echo "&response=failed";
}
?>
Inspiring
February 20, 2007
em_shomer wrote:
> I guess my main question is how do I set up the PHP file so that it can work
> with my flash files?

Go to my site at http://foundationphp.com/flash/index.php

Download the free sample chapter. It covers exactly what you're looking for.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
em_shomerAuthor
Known Participant
February 20, 2007
I dont have the book or software so I am doing this on my main project:
I basically cut and pasted the code to frame 1 because I dont have a load date variable so everything resides on Frame 1

I get several output errors:

***ERROR*** frame 1 line 2 ' { ' expected
function checkForm() :Boolean {

**ERROR** frame=1 line 26:
unexpected ' } ' encountered
}

how do I handle this so I dont get these error messages

Inspiring
February 20, 2007
Below is my contact form code. It works beautifully. You may have to modify it some to achieve your ultimate goal but it is very simple and easy to understand.