我对 PHP 没有太多经验 - 我使用表单生成器来创建此表单。问题是表单发送了数百封空白电子邮件。任何人都可以帮我解决它吗?这是PHP代码:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
mail("blah@blah.com","MESSAGE: website","
Someone has submitted a message from your website! Huzzah!
--------------------------------------------------------------------------------
CONTACT INFO:
" . $_POST['field_1'] . "
" . $_POST['field_2'] . "
MESSAGE:
" . $_POST['field_3'] . "
--------------------------------------------------------------------------------
Also you're a stud.
");
header("Refresh: 0;url=http://www.blah.com/thanks.html");
?>