I’m not sure but I think you need some dynamic text fields!
With variable names “name_txt”, “email_txt” and “subject_txt”.
And to use it with flash simply add a this code on the first frameof yur movie.
loadVariables(“myphpfile.php”, POST);
change myphpfile.php to the name of the php file you have!
Should werk! :-\
welllllll here’s another php code for sending mail… I understand this one better…
<?
$ToEmail = "*youremailaddresshere*";
##$ToName = "*your name/nickname*";
$ToSubject = "*Your subject here*";
$EmailBody = "Sent By: $name
Email: $email
WebSite: $website
Message:
$comments
";
$EmailFooter="
This message was sent by: $name from http://yousite or sumthin";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");
Print "yourdynamictextbox=Complete - Your mail has been sent";
?>
You should change the things in Italic. (Your email, name etc)
And “email”, “website”, “comments” next to “EmailBody” are the variable names of the textboxes! you could add, delete, change them any way you want
and the last one “yourdynamictextbox”. That should be the textbox where it displays the text “Complete - your…” Just for the visitor to see that the mail has been sent. But If you don’t wan ti you could just delete that line!
well… that’s all you need!
just make textboxes with variable names
“name”, “email”, “website”, “comments”
.
You can change the layout of the email message.
Change the line that starts with “EmailBody=”
<----- this is a line break
This layout would appear like this:
[ isf the name was “Syko”, website was “www.sss.ss” and comments were “mycomments here” and email was “myemail@email.com”
the last piece “thi message was sent by…” Is the next line that starts with"EmailFooter"
“$” in php means that the word followed by it is a variable! like a varibale name of a text box for example
Well, thats what you wrote in your script, try loading the output into flash, then define an onLoad to check if that output is success, after that report to the user that the email had been sent succesfully. You should use LoadVars object, not loadVariables. If ur using flash 5, check the XML Object.