0
我正在使用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>
當我RUND我的實際代碼的URL總是返回我:
http://www.my-site.de/fbregconfirm.php?go=fbcheck&fbid=$email
但它應該顯示類似於
http://www.my-site.de/fbregconfirm.php?go=fbcheck&[email protected]
我錯了什麼?忘了我的東西與$ _POST或$ _GET?
感謝,它的工作原理。我更進一步:) – 2012-01-02 14:03:50