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 form to email address using php

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iamalex - 06 Nov 2006 20:43 GMT
Can't get flash form to work with php, works fine as html, but need it to work
in flash can someone help.

I get a parse error:
Parse error: syntax error, unexpected T_STRING in
/var/www/domains/mydomain.comt/docs/sendmail6.php on line 13

I have a flash form that calls out the vars as Email, CompanyName,Name, etc
and a submit button going to:
on (release) {
    getURL("http://mydomain.com/sendmail6.php", "", "POST");
}

my php script is:
<?php

$Email = $_POST['Email'] ;
$CompanyName = $_POST['CompanyName'] ;
$Name = $_POST['Name'];
$Address = $_POST['Address'];
$City = $_POST['City'];
$State = $_POST['State'];
$Zip = $_POST['Zip'];
$Phone = $_POST['Phone'];
$Comments = $_POST['Comments'];

mail( "myemail@address.com:, "Email
Subject",$CompanyName."<br/>".$Name."<br/>".$Address."<br/>".$City."<br/>".$Stat
e."<br/>".$Zip."<br/>".$Phone."<br/><br/>".$Comments, "From: $email" );
print "Congratulations your email has been sent";

?>
superreeen - 07 Nov 2006 19:58 GMT
I think i found your problem.
It's a Syntax Error here you should use . instead of ,...
[code]
Subject",$CompanyName
[/code]
this should work.
[code]
Subject".$CompanyName
[/code]
 
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.