sleepydad
02-27-2008, 03:13 AM
The scenario:
I have created a Flash email client that collects the data using ...
var my_lv:LoadVars=new LoadVars();
my_lv.name=name_txt.text;
my_lv.to=to_txt.text;
// etc ...
///////////////////
submit_btn.onRelease=function() {
my_lv.send("process.php", "POST");
};
// pretty straightforward
process.php reads (for brevity) ..
<?
$to=$_POST['to'];
$subject=$_POST['name'];
// ...
// ...
mail($to, $subject, $body, $headers);
?>
When I test this on my local server using MAMP, it works fine. However, when I upload it to my web host, I get the following message:
Inernal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Question 1:
Why the error message generated by my web host when it works fine locally?
Question 2:
I've read a hundred posts on multiple forums about sendAndLoad vs send to keep the php window from popping up. The only way that I've gotten this to work (even locally) is to use send. sendAndLoad doesn't send the variables for some reason.
NOTE: I am calling this Flash movie into another movie using this.createEmptyMovieClip(); if that makes any difference.
Thanks in advance -
sleepydad
I have created a Flash email client that collects the data using ...
var my_lv:LoadVars=new LoadVars();
my_lv.name=name_txt.text;
my_lv.to=to_txt.text;
// etc ...
///////////////////
submit_btn.onRelease=function() {
my_lv.send("process.php", "POST");
};
// pretty straightforward
process.php reads (for brevity) ..
<?
$to=$_POST['to'];
$subject=$_POST['name'];
// ...
// ...
mail($to, $subject, $body, $headers);
?>
When I test this on my local server using MAMP, it works fine. However, when I upload it to my web host, I get the following message:
Inernal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Question 1:
Why the error message generated by my web host when it works fine locally?
Question 2:
I've read a hundred posts on multiple forums about sendAndLoad vs send to keep the php window from popping up. The only way that I've gotten this to work (even locally) is to use send. sendAndLoad doesn't send the variables for some reason.
NOTE: I am calling this Flash movie into another movie using this.createEmptyMovieClip(); if that makes any difference.
Thanks in advance -
sleepydad