jimw00d
January 24th, 2003, 05:30 AM
I am using the following code:
<html>
<body>
<?php
$ToEmail = "northls@nbkayaking.com";
$ToSubject = "Enquiry";
$BrowserType = $HTTP_USER_AGENT;
$MediaTypes = $HTTP_ACCEPT;
$ServerName= $REMOTE_ADDR;
$Date= date("d/F/y\n\nH.i");
$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n\n$BrowserType\n$MediaTypes\n$
ServerName\n\n$Date";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");
if(mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">")){
echo "Mail Sent";
}
else{
echo "Mail not Sent";
}
?>
In flash Mx I have a mail form which posts this code, in turn producing an email which is working fine.
I decided however to display to the user whether the mail was sent and received by the server.
I therefore need to include a redirection script but I cannot get header() to work and I am not sure how to include java pop up scripts.
Maybe using the alert() function in java would help??
Any ideas??
<html>
<body>
<?php
$ToEmail = "northls@nbkayaking.com";
$ToSubject = "Enquiry";
$BrowserType = $HTTP_USER_AGENT;
$MediaTypes = $HTTP_ACCEPT;
$ServerName= $REMOTE_ADDR;
$Date= date("d/F/y\n\nH.i");
$EmailBody = "Sent By: $FirstName\nSenders Email: $Email\n\nMessage Sent:\n$ToComments\n\n$BrowserType\n$MediaTypes\n$
ServerName\n\n$Date";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");
if(mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">")){
echo "Mail Sent";
}
else{
echo "Mail not Sent";
}
?>
In flash Mx I have a mail form which posts this code, in turn producing an email which is working fine.
I decided however to display to the user whether the mail was sent and received by the server.
I therefore need to include a redirection script but I cannot get header() to work and I am not sure how to include java pop up scripts.
Maybe using the alert() function in java would help??
Any ideas??