feedback.html
<title>Feedback Form</title>
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 ); ?> <title>Message Received</title> <h3>Thanks for your comments</h3> Message received from <?php echo($username); ?><br> Reply to <?php echo($useraddr); ?>
使用官方Model Context Protocol PHP SDK将PHP应用程序功能暴露为MCP工具、资源和提示,用于代理工作流。










