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]