Hvad kan være galt med dette Script?
Hvad er der galt med mit script?når jeg sender en mail fra min hjemmeside modtager jeg den aldrig
userComments = new LoadVars();
userComments.onLoad = function(success){
if(success){
_root.gotoAndStop("output");
}else{
_root.gotoAndStop("error");
}
};
function sendComments(){
var scriptURL = "http://www.thecrab.dk/cgi-bin/FormMail.pl";
var obj = userComments
obj.fromEmail = fromMail
obj.fromName = fromName
obj.toEmail = "crabber@thecrab.dk";
obj.toName = "Casper Andersen";
obj.subject = "Mail fra Thecrab.dk";
obj.body = message
obj.sendAndLoad(scriptURL,obj,"POST");
_root.gotoAndStop("sendt");
}
stop();
Casper
