当前位置:   article > 正文

php用户反馈功能实现,一个简单的用户反馈表单 (Feedback)

feedback.html

feedback.html

Feedback Form

Name:

Email:

feedback.php<?php

$username = $_POST['username'];

$useraddr = $_POST['useraddr'];

$comments = $_POST['comments'];

$to = "php@h.com";

$re = "Website Feedback";

$msg = $comments;

$headers = "MIME-Version: 1.0\r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

$headers .= "From: $useraddr \r\n";

$headers .= "Cc: another@hotmail.com \r\n";

mail( $to, $re, $msg, $headers );

?>

Message Received

Thanks for your comments

Message received from <?php echo($username); ?>

Reply to <?php echo($useraddr); ?>

相关标签:php

本文原创发布php中文网,转载请注明出处,感谢您的尊重!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/500039
推荐阅读
相关标签
  

闽ICP备14008679号