php表单邮件:显示确认页面后发送邮件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php表单邮件:显示确认页面后发送邮件相关的知识,希望对你有一定的参考价值。
the user sees the confirmation page immedeateley. this is helpful if the mail() function takes some time
<? ?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"> </head><body> <? ?> <h2>Thank you for sending the form!</h2> <? global $body_for_callback; $body_for_callback = $_POST["name"] ." has filled in the form."; function mail_callback() { global $body_for_callback; } else: ?> <form id="orderform" action="#" method="post" name="form1"> <input type="text" name="name"> <input type="submit" name="go" value="send form"> </form> <? endif; ?> </body></html> <? ?>
以上是关于php表单邮件:显示确认页面后发送邮件的主要内容,如果未能解决你的问题,请参考以下文章