-1

我想在查询字符串中传递 $Email,看起来像这样

header("Location:index.php?state=sent&Email=$Email");
$Email = urlencode("$urlencode");
$urlencode = $row['Email'];

我之前从我的数据库中定义了 $row

这将收到它

$Email = $_GET['Email'];
echo "<p style='color:white;margin-bottom:10%; font-size:17px;' align='center'> Your email is: $Email</p>"; 

但由于某种原因,它不会发送带有查询字符串的电子邮件

4

1 回答 1

1

你的顺序错了。应该:

$urlencode = $row['Email'];
$Email = urlencode($urlencode);
header("Location:index.php?state=sent&Email=$Email");
于 2012-12-22T20:47:33.200 回答