【发布时间】:2013-08-08 19:54:58
【问题描述】:
当有人订阅我的列表时,我从我的自动回复器 (getResponse) 接收 GET 变量,我需要在另一个 GET 请求中将这些变量传递给调查提供者。我使用 PHP 的“header()”函数,但“@”字符被从电子邮件中删除。
这是我的 PHP 代码:
// retrieve email from GET
$email = $_GET['email'];
// pass on email
header("Location: http://surveyprovider.com/surveyID/start?email=$email");
假设我在 getResponse 调用我的 PHP 脚本时收到 "?email=someguy@someserver.com"。当我的脚本运行时,生成的 HTTP 调用如下所示:
http://surveyprovider.com/surveyID/start?email=someguysomeserver.com
请注意电子邮件地址中缺少“@”?
我该如何解决这个问题?
我不能使用会话变量(就像这个问题中建议的那样:How to pass variables received in GET string through a php header redirect?),因为调查提供者不允许我检索会话变量(没有自定义 PHP 脚本)。
我能做什么?
【问题讨论】: