邮件联系表单的PHP代码问题 [英] Problem with php code for a mail contact form

查看:91
本文介绍了邮件联系表单的PHP代码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我是PHP代码的新手,我已经从互联网上复制了以下代码,以便在我的网站上创建一个联系页面。

Hello,

I am new to PHP code and I have copied the following code from the internet to create a contact page on my web site.


展开 | 选择 | Wrap | 行号

推荐答案

当然,我们很乐意提供帮助,但为了这个,你需要做一些事情:
  • 提供代码时使用[code]标签
  • 向我们提供*所有*相关信息 - 你提供的信息几乎没有
  • 告诉我们错误
  • 告诉我们什么都没发生
  • 告诉我们你想要发生什么
  • 告诉我们*发生了什么*发生了
Sure, we''d love to help, but in order for that to happen you''ve got to do a few things:
  • Use [code] tags when supplying code
  • Provide us with *all* relevant information - the info you gave is next to nothing, and certainly not enough to help you with
  • Tell us the errors
  • Tell us what didn''t happen
  • Tell us what you wanted to happen
  • Tell us what *did* happen


对不起


错误消息位于代码的末尾,在我的电子邮件表单中输入了姓名,电子邮件地址和文本。然后我按下提交按钮,打开一个300X 300的窗口,其中包含代码末尾列出的文本。没有发送电子邮件。我正在使用XAMPP在笔记本电脑上测试代码。变量名称和电子邮件地址列在窗口的顶部,因此它们看起来设置为OK。这个问题看起来与电子邮件的命令有关.......?


谢谢
Sorry


The error message is at the end of the code, On my email form I input a name, email address and text. Then I press the submit button and get a window opening 300X 300 with the text listed at the end of the code. No email is sent. I am testing the code on a laptop using XAMPP. The variable name and email address are listed at the top of the window so they look to be set OK . The prblem looks to be with the email comand .......?


Thanks


参见


echo(您的消息已成功发送;


未关闭...
see

echo ("Your message was successfully sent";

is not closed...


这篇关于邮件联系表单的PHP代码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆