0

I was working on a school project and the formmail.php given from the instructor is easy and works really good. The school ended so I signed up my own domain to save all the school works also to get more knowledge of how domain things work.

But the thing is, the formmail worked perfectly with the instructor's domain/server after I transfered everything back to the server I signed up the formmail gives me two different errors randomly when submitting the formmail.

I know and remember I had to change this in the php file in order to work.

$referers = array('et4891.com','hotmail.com'); I need to put in the domain in which I did but I still get the errors though. I have totally 0 knowledge about php so I searched up a bit on the net and lots were talking about changing the domain which of course I did but I still get the errors. Anyone able to give me a hand?

http://et4891.com/fpj/contact.html The above is my own site with all the transfered files and so this contact page uses the formmail.php after filling the info and upon submitting I get either one of the errors below

http://et4891.com/fpj/formmail_error1.jpg

http://et4891.com/fpj/formmail_error2.jpg

Anyone able to give me a hand here with simple english instead I have no knowledge of php or programmings?

Thanks in advance

4

1 回答 1

0

您的第一个错误意味着您的脚本使用了过时的代码。eregi() 是一个不能与高于 5.2 的 PHP 一起使用的函数,您的新主机可能有(5.3 或 5.4 现在最常见)。由于您不是程序员,因此最简单的解决方案是找到您的 formmail 脚本的更新版本。

您可以随时搜索替代解决方案,如果您仍想尝试自己调试代码,请参阅PHP 中 eregi() 的好替代方案

于 2012-11-28T22:10:53.537 回答