我正在使用预定义解决方案中的简报脚本:
<?php
# SUBJECT
$subject = '';
if (isset($_POST['s1'])) $subject = $_POST['s1'];
if ($subject=='')
{
$subject='Remove';
}
else
{
$subject='Subscribe';
}
# LIST EMAIL ADDRESS
$recipient = 'email@domain.com';
# VERIFY SYNTAX
if(!preg_match('/^[A-Z0-9._%-]+@[A-Z0-9][A-Z0-9.-]{0,61}[A-Z0-9]\.[A-Z]{2,6}$/i', $_POST['f16']))
{
die ('Please enter a valid email.');
}
# FORM VALUES
$body = '';
$body .= "Email: ".$_POST['f16']." \n";
# SEND MESSGAE
mail( $recipient, $subject, $body, "From: $recipient") or die ('Error message');
# SHOW RESULT PAGE
header('Location: http://google.com');
?>
如何在输入下方显示标签而不是打开新窗口?