Den melder stadig error når jeg afprøver swf filen efter have uploadet den til min hjemmeside.
Og det er one.com jeg har som udbyder...
Her er hele koden : (håber du kan finde nogle fejl)
[CITAT]Indsæt dit citat her[/// edit this line corresponding to the location of your script on your server
formMailURL = "
http://jazperlindenhoff.dk/cgi-bin/FormMail.pl";
function sendEmail(){
var message = new LoadVars();
// form variables dynamic, if you need another fields, just add them as text fields in the movie and
// add them below as message.fieldname = fieldname.text
message.email = email.text;
message.realname = name.text;
message.content = content.text;
// form variables static
message.subject = "Flash Feedback Form";
// put your email here
message.recipient = "jazper@email.dk";
message.required = "email,realname,content";
message.env_report = "REMOTE_HOST,HTTP_USER_AGENT,REMOTE_ADDR"
// sending email
var sendresult = new XML();
message.sendAndLoad(formMailURL ,sendresult,"POST");
sendresult.onLoad = function() {
resultXML = sendresult;
checkResults(sendresult)
}
}
// reseting the form, add here fieldname.text if you have more fields
function resetForm(){
email.text = "";
name.text = "";
content.text = "";
}
// checking returned results
function checkResults(){
errors = "";
if (resultXML.getByName("error").firstChild.toString()=="0"){
gotoAndStop("success");
}
else{
gotoAndStop("errors");
}
}
stop();]