【发布时间】:2015-11-28 02:44:27
【问题描述】:
我需要将用户从一个 php 表单发送到另一个表单,但我也需要传递一个 URL 查询。所以他们到达example.com/Form1.php$email=Whatever@Whatever.com,然后他们需要传递给example.com/Form2.php$email=Whatever@whatever.com。我无法让它在标题周围的 '' 中使用 $_GET('Location: http://www.example.com');
查看代码
<?php
$email = $_GET["email"];
$_POST['customerSatisfaction'];
$to = "blah";
$email_from = 'blah';
$email_subject = "blah";
$headers = "From: $email_from \r\n";
$email_body = " <?xml version = \"1.0\"?>
<?adf version = \"1.0\"?>
<adf>
<prospect>
<customer>
<email preferredcontact=\"1\">$email</email>
</customer>
</prospect>
</adf>
";
mail($to,$email_subject,$email_body,$headers);
header('Location: http://www.BLAH.com/NEED $EMAIL HERE!!');
?>
【问题讨论】: