【发布时间】:2016-05-03 19:47:25
【问题描述】:
我刚刚在 HTML 网站上创建了一个简单的 php 表单。一切正常,但我想在回显页面上添加一个图标...我实际上正在使用此代码:
<?php $name = $_POST['demo-name'];
$email = $_POST['demo-email'];
$message = $_POST['demo-message'];
$formcontent="From: $name \n Email: $email \n Message: $message";
$recipient = "myemail@gmx.net";
$subject = "Message from ...";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "<body style='background-color:#000000; color:#ffffff; font-family:arial; font-size:20px; padding-top: 100px' align='center' >" . " " . "Thank You! </br> </br><a href='index.html' style='text-decoration:none; color:#f3bd46;'> Return to ...</a></body>";
?>
【问题讨论】:
-
我看不到您尝试在哪里实施网站图标。一个 favicon 在 html-head 中定义,更多信息在这里:en.wikipedia.org/wiki/Favicon#How_to_use