如何将文本设置为标签而不是打开新页面?

时间:2016-09-29 19:06:17

标签: php html

我正在使用预定义解决方案中的简报脚本:

<?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');
?>

如何在输入下方显示标签而不是打开新窗口?

0 个答案:

没有答案