I've just updated the form on my site and now the .php won't submit the data? I've not touched the .php file????
the form is after page 28 of my flash book here:
http://www.tees.me.uk/booknew
All I've done is change the form by adding a 'retry' button if the users are faced with the failed to send screen.
I've added the following actionscript:
//sends the user back to the front screen of the form
//if they have recieved the failed error message.
this.retryBU.onRelease = function(){
gotoAndStop("start");
}
What is the best way to trap this error?
I thought Firebug might have pointed something out to me but it hasn't.
Original php:
<?PHP
$to = "
[email protected]";
$subject = "Online Flip Book Demo Request";
$message = "Name: " . $nameInput;
$message .= "\nEmail: " . $emailInput;
$message .= "\nCompany: " . $companyInput;
$message .= "\nTelephone: " . $contacttelInput;
$message .= "\nLocation: " . $countyCOMBO;
$headers = "From: $emailInput" . "\r\n";
$headers .= "Reply-To: $emailInput" . "\r\n";
$headers .= 'Bcc:
[email protected]' . "\r\n";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
Original Actionscript
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sendBU.onRelease = function() {
senderLoad.nameInput = nameInput.text;
senderLoad.emailInput = emailInput.text;
senderLoad.companyInput = companyInput.text;
senderLoad.contacttelInput = contacttelInput.text;
senderLoad.countyCOMBO = countyCOMBO.value;
senderLoad.sendAndLoad("http://www.tees.me.uk/Booknew/send.php",receiveLoad);
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.demoForm.gotoAndStop("success");
}
else {
_root.demoForm.gotoAndStop("failed");
}
}
// Adds conditional logic for the Submit button that
// validates user input.
this.send_BU.onRelease = function(){
if (emailInput.text == null || emailInput.text ==""){
gotoAndStop("failed");
} else {
gotoAndStop("success");
}
}