如何PHP卷入&在AngularJS网站上注册用户

时间:2016-01-03 07:30:01

标签: php angularjs curl

需要熟悉PHP和AngularJS的人帮助解析注册页面,以便我可以创建一个Curl函数。

我正在尝试使用合作伙伴网站创建单点登录体验。在我们的网站上注册后,我们会自动在合作伙伴网站上注册它们。注册后,我们可以使用PHP Curl创建一键登录我们的合作伙伴。

不幸的是,合作伙伴网站失去了他们的主程序员,我没有AngularJS经验。我们的合作伙伴没有看到单点登录的价值,因此他们不愿意为此聘请承包商。

我需要有关解析其注册页面的指导,以便我可以构建一个PHP curl函数来自动注册。 (我希望看到<form>标签,但我找不到。)

以下是其注册页面中的代码:

<div class="togContent" ng-show="show">

    <div class="table">
        <div class="label ng-binding">Member #: </div>
        <div><input type="text" class="uppercase ng-pristine ng-untouched ng-valid" ng-model="mem.Member"></div>
        <div class="label ng-binding">First Name: </div>
        <div><input type="text" class="capitalize ng-pristine ng-untouched ng-valid" ng-model="mem.FirstName"></div>
        <div class="label ng-binding">Last Name: </div>
        <div><input type="text" class="capitalize ng-pristine ng-untouched ng-valid" ng-model="mem.LastName"></div>
        <div class="label ng-binding">Zip: </div>
        <div><input type="text" ng-keypress="validateZip($event)" maxlength="5" ng-model="mem.Zip" class="ng-pristine ng-untouched ng-valid ng-valid-maxlength"></div>
        <div class="label filler">&nbsp;</div>
        <div class="filler">&nbsp;</div>
        <div class="label ng-binding">Email: </div>
        <div><input type="text" ng-model="mem.Email" class="ng-pristine ng-untouched ng-valid"></div>
        <div class="label ng-binding">Password: </div>
        <div><input type="password" ng-model="mem.NewPassword" class="ng-pristine ng-untouched ng-valid"></div>
        <div class="label ng-binding">Confirm Email: </div>
        <div><input type="text" ng-model="mem.Email2" class="ng-pristine ng-untouched ng-valid"></div>
        <div class="label ng-binding">Confirm Password: </div>
        <div><input type="password" ng-model="mem.NewPassword2" class="ng-pristine ng-untouched ng-valid"></div>
        <div><p ng-show="err.display" class="ng-binding ng-hide"></p></div>
    </div>

    <p class="clear center padtop ng-binding" style="visibility:hidden;"><input type="checkbox" name="marketingSignup" ng-model="mem.notifications" class="ng-pristine ng-untouched ng-valid"> Yes, I would like to receive email alerts and notifications from this site.</p>
    <div class="submitButton ng-binding" ng-click="signup()">Sign Up</div>
</div>

感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

感谢http://stackoverflow.com/users/1078488/jiml的评论,我能够记录帖子并找出相应的方法。谢谢吉姆!