Form

I made a form in flash to send a mail to an emailaddress, when I export the .fla to .swf, then it works correctly. But when I insert that .swf in a .html-document and run this in a browser, it won’t work! What could be the reason?:frowning:

Flash MX Pro 2004:
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

verzenden.onRelease = function() {
senderLoad.bedrijf = bedrijf.text;
senderLoad.emailadres = emailadres.text;
senderLoad.info = info.text;
senderLoad.vraag = vraag.text;
senderLoad.sendAndLoad(“http://www.solvo.tv/westinform/verzenden2.php”,receiveLoad);
}

receiveLoad.onLoad = function() {
if (this.sentOK) {
sentOK = “”;
bedrijf.text = “”;
emailadres.text = “”;
info.text = “”;
vraag.text = “”;
}
}

For PHP I used the following:
<?php
$subject = “Mail via website”;
$bedrijf = "Bedrijf / Organisatie: " . $bedrijf;
$info = "Info: " . $info;
$vraag = "Vraag: " . $vraag;
$message = “Contactformulier homepage
$bedrijf
$info
$vraag”;
$sentOK = mail (“nico.van.hessche@westinform.be”, “$subject”, “$message”, “From:$emailadres”);

echo “sentOK=” . $sentOK;

?>