Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
449 views
in Technique[技术] by (71.8m points)

php - 联系表格不适用于PHP(Contact form not working with PHP)

I'm using this tutorial on nettuts to build a contact form.

(我在nettuts上使用本教程来构建联系表。)

Their contact form works fine on a mac that's running on 10.6.8 but doesn't work on a mac running on 10.8.4?

(他们的联系表在运行10.6.8的Mac上可以正常运行,但不能在运行10.8.4的Mac上运行?)

I'm assuming it might be something to do with version of PHP but I'm not sure how to fix their code to make it paly nice can anyone help?

(我以为这可能与PHP版本有关,但我不确定如何修复他们的代码以使其美观,任何人都可以帮忙吗?)

I have also tried it on my websites server but no joy there either.

(我也曾在我的网站服务器上尝试过它,但那里也没有乐趣。)

thanks,

(谢谢,)

  ask by a_knife_a_fork translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Instead of php, you can use a button with a mailto: tag

(您可以使用带有mailto:标签的按钮来代替php)

 .button { background-color: #ffa200; border: none; color: white; padding: 15px 410px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; } .button:hover { background-color:#ff2f00; } aa { text-decoration: none; } h3.k { color: white; font-weight: bold; } 
 <center> <button class="button"> <a class="a" href="mailto: [email protected]"><h3 class="k">SEND US A MESSAGE</h3></a> </button> </center> 

This tag opens the Mail app and already shows who it is to

(此标签会打开“邮件”应用,并且已经显示了该收件人的身份。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...