flash 和PHP发邮件的方法 |
| 作者:佚名 来源:闪吧 作者: shuhankuang 更新:2007-1-13 20:49:03 错误报告 我要投稿 |
点击浏览该文件

/Upload/2004_Pack/mail.swf
测试: send按钮:
on (release) { if (youremail.indexOf("@")>0) {//这里判断邮件格式是否符合。 if (youremail.indexOf(".")>youremail.indexOf("@")) { y_mail = true; } } if (femail.indexOf("@")>0) { if (femail.indexOf(".")>femail.indexOf("@")) { f_mail = true; } } if (yourname != "" and fname != "" and message != "" and y_mail == 1 and f_mail == 1) { loadVariables("mail.php", this, "POST");//和PHP通信。其实和TXT是一样的! gotoAndStop("send"); } else { gotoAndStop("wrong"); } } -------------------------------
PHP部分:
<?
$mailto=$femail; $mailfrom=$youremail; $subject="hello"; $mailmes=$message; mail($mailto,$subject,$mailmes,$mailfrom);//
?>
|
|
| 文章录入:skyuu 责任编辑:skyuu |
|
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |