基本窗体处理程序
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基本窗体处理程序相关的知识,希望对你有一定的参考价值。
processes contact form input and produces an auto reply
<?php $fields{"Name"} = "Name"; $fields{"Email"} = "Email"; $fields{"Message"} = "Message"; $from = $_REQUEST['Email'] ; $name = $_REQUEST['Name'] ; $headers = "From: $from"; $subject = "NCCDC Web contact -- From contact page"; $body = "WEB CONTACT FROM NCCDC We have received the following information: "; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s ",$b,$_REQUEST[$a]); } /*Second email */ $subject2 = "Thank you for contacting NCCDC"; $autoreply = "Thank you for contacting us. Somebody will get back to you as soon as possible, usually within 48 hours. If you have any more questions, please consult our website at www.pdxchild.org"; $autoreply .= " You Wrote: ".$_REQUEST["Message"]; if($from == '') {print "You have not entered an email, please go back and try again";} else { if($name == '') {print "You have not entered a name, please go back and try again";} else { if($send) else } } ?>
以上是关于基本窗体处理程序的主要内容,如果未能解决你的问题,请参考以下文章
按图片中的要求用C#写代码!!QQ邮箱785615068@qq.com