Question
Convert PHP
I have a PHP page that receives data from a Flash application
Quiz. It receives teh scores, grade, name, and badge number of the
person taking the quiz after they hit the Submit button.
Here is my code on my .php page:
<?PHP
//these two lines determine the percentage the officer scored on the quiz
$totalquestions = $_POST[officerCorrect] + $_POST[officerIncorrect];
$percentage = $_POST[officerCorrect] / $totalquestions;
$to = "myemail@isp.com";
$subject = "Flash Training Score Submission";
$message = "\n\nModule: " . $_POST[officerModule];
$message .= "\n\nOfficer Name: " . $_POST[officerName];
$message .= "\n\nBadge: " . $_POST[officerBadge];
$message .= "\n\nScore: " . $percentage * 100;
$headers = "From: myemail@isp.com";
$headers .= "\nReply-To: myemail@isp.com";
//Do not edit these two lines
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
What I would relly like to do is use a non-server side app to receive this quiz data and forward that to my email address. I found out that my Host Server does not and will not have server side apps available.
How can I convert my .php page to a standard .htm type page that will also receive this data and forward it to my email account.
Thanks for any help.
Here is my code on my .php page:
<?PHP
//these two lines determine the percentage the officer scored on the quiz
$totalquestions = $_POST[officerCorrect] + $_POST[officerIncorrect];
$percentage = $_POST[officerCorrect] / $totalquestions;
$to = "myemail@isp.com";
$subject = "Flash Training Score Submission";
$message = "\n\nModule: " . $_POST[officerModule];
$message .= "\n\nOfficer Name: " . $_POST[officerName];
$message .= "\n\nBadge: " . $_POST[officerBadge];
$message .= "\n\nScore: " . $percentage * 100;
$headers = "From: myemail@isp.com";
$headers .= "\nReply-To: myemail@isp.com";
//Do not edit these two lines
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?>
What I would relly like to do is use a non-server side app to receive this quiz data and forward that to my email address. I found out that my Host Server does not and will not have server side apps available.
How can I convert my .php page to a standard .htm type page that will also receive this data and forward it to my email account.
Thanks for any help.
