
Код:
<?
//file send.php
$to = $_POST['to'];
$subj = $_POST['subj'];
$text = $_POST['text'];
$res = mail($to,$subj,$text);
echo 'res='.$res;
?>
теперь во Flash:

Код:
send_btn.onRelease = function()
{
var my_lv:LoadVars = new LoadVars();
my_lv.to = to_tf.text;
my_lv.text = text_tf.text;
my_lv.subj = subj_tf.text;
var my_t:LoadVars = new LoadVars();
my_t.onLoad = function()
{
if (my_t.res)
{
trace ('mail sended succefuly');
}
}
my_lv.sendAndLoad("send.php", my_t, "POST")
}
clear_btn.onRelease = fucntion()
{
to_tf.text = '';
text_tf.text = '';
subj_tf.text = '';
}
вообщем что-то в этом роде