Facebook注册-重定向到url,包括一些$响应


facebook registration - redirect to url including some $response

我使用fb:注册插件并获得一些数据作为signed_request。这一切都很好,但如果一个用户已经存在于我的数据库中,我希望用户验证电子邮件和密码。因此,我检查电子邮件是否已经存在,如果存在,用户必须用(预填的)电子邮件和密码填写表单。

下面是我的实际代码:

$email =$response["registration"]["email"]; 
$emailcheck = mysql_query("SELECT email FROM member WHERE email = '".$email."' LIMIT 1");
if (mysql_num_rows($emailcheck) >0)
   { redirect ('http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=$email'); }

在fbregcheck.php我有以下代码:

<form action="fbregconfirm.php" method="POST">
e-Mail:<input type="text" name="email" value="email"><br>
Password:<input type="text" name="password"><br>
<input type="submit" value="regok">
</form>

当我运行我的实际代码url总是返回给我:

http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=$email 
但它应该显示类似于 的内容
http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=info@example.com

我做错了什么?忘记$_POST或$_GET了吗?

PHP不解析单引号字符串中的变量,所以

redirect ('http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=$email');
应该

redirect ('http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=' . $email);