Brayshakes
05-23-2005, 09:36 PM
I am trying to write a relativly simlpe email PHP script that takes input from my flash and sends an email to someone. So I did that but my problem resides in the fact that I want flash to detect if the message was sent and return a value. But since PHP was server side is there anyway that I can return a value to flash from PHP?
on (release){
getURL ("mail.php", "", "POST");
}
and the php code is this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php
$to = "jim@oddparts.net \n";
$subject = "Mail from $_POST['name'] @ oddparts.net \n";
mail ('jim@oddparts.net', '$to', '$subject', '$_POST['input']');
<body>
</body>
</html>
on (release){
getURL ("mail.php", "", "POST");
}
and the php code is this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php
$to = "jim@oddparts.net \n";
$subject = "Mail from $_POST['name'] @ oddparts.net \n";
mail ('jim@oddparts.net', '$to', '$subject', '$_POST['input']');
<body>
</body>
</html>