所以我的联系页面看起来像这样
<?php
include 'header.php';
foreach($_POST as $key => $value) {
$posts[$key] = filter($value);
}
if(isset($posts['name'])) {
if($posts['name'] == ""){
$error = "Please enter your real name!";
}else if(!isEmail($posts['email'])){
$error = "Please enter a valid email address!";
}else if($_POST['message'] == ""){
$error = "Please enter your message!";
}else{
$subject ="Contact";
$message="{$_POST['message']}";
$header="From: {$posts['name']} <{$posts['email']}>";
$to = $site->site_email;
$send_contact=mail($to,$subject,$message,$header);
$success = "Message Sent!";
}
}
?>
<div class="contentbox">
<div class="head">Contact</div>
我想以这种方式阻止垃圾邮件发送者......
您每小时只能发送 1 封电子邮件。从这个contact.php页面
请帮助我并将相同的代码发回给我,但使用时间阻塞代码或其他东西进行了编辑。
谢谢