2012-02-08 41 views
0

我正在与合作伙伴网站合作将表单嵌入到我的网站,用户可以在其中登录到门户网站。门户开发人员授予我访问Web登录服务的权限,以便我将变量从我的网站传递给他。将变量传递给PHP中的CFM表格

这是给出的信息我怎样才能使这项工作在PHP中,我有一个复选框,用户名和密码的表单,但不知道如何使它传递变量我没有看到我的任何连接结束。我不知道如何设置它们,当他们被重定向到我的网站上的一个页面时,重置密码的任何想法?

我已经使用WordPress登录并将其添加到我的主站点,所以我知道大部分的基本知识使其工作,但我迄今为止应用到目前为止还没有为我工作。我想我需要在正确的方向上微调一下,让大脑再次运作。

在此先感谢。

从开发

I am working on a web login service that you could use and have enough done that I can 
send you the requirements. 

Form Post URL: http://portal.blank.com/services/formlogin.cfm 
Form variables: 
portallogin - can be any value if present the following form variables are required: 

errorurl - URL to be redirected to if an error occured. There will be an "error" url variable present with a human readable error string. 
portalurl - (optional) URL to be redirected to if successfully logged in. if not present will be redirected to http://portal.blank.com 
username - username of user 
password - password of user 
agreeterms - can be any value just needs to be present to authenticate 

fogotpassword - can be any value if present will lookup password based on email address and password will be emailed 
email - email address associated with user 
returnurl - URL to be redirected to after running password lookup 

回答

0

一个简单的方法是使用Snoopy,一个PHP类。更难的方法(但不失效)将使用PHP's cURL functions将数据发布到表单。假设您正试图将您的合作伙伴网站的链接保留在用户隐藏的位置。

或者,您可以制作一个简单的HTML表单,并将表单操作设置为“http://portal.blank.com/services/formlogin.cfm”,如果您不关心用户知道自己是通过其他站点进行身份验证。如果可用,我会使用https。