Jump to content

Need Help Pls! Login to remote site.


Webdoc116

Recommended Posts

Hello All,

 

I'm new here and I hope someone can help me with a problem I' facing.

 

Let me explain what I'm trying to accomplish:

I have created a Login page for one of my clients, the Login page its hosted on "server a" it logs onto a gps tracking app that is hosted on "server b" (I have no access to these files because Its a 3rd party tracking app).

 

I need to write a script that will take the user name and password and log into the app located on "server b" sounds simple, I could just point the form to the login page on "server b". works fine that way, I can logon just fine. BUT when I enter Invalid user or pass, It brings me to the "server b" login error page. This is no good, they're login page is very ugly and hence why we created our own login page hosted on our servers. I need to display to our "server a" login error page on "invalid input" not the "server b" page.

 

I was thinking I could create a "middle man" script using session variables to attempt the login "behind the scenes", and if its good; proceed to login. If its invalid, display our error page, not they're page.

 

Is there a way to accomplish this?

 

I hope I didn't confuse you guys too much heh.

If I explained this unclear please let me know so I can try to explain better.

 

Please Help me, I need to have this finished this week and I'm stumped.

 

Thanks for all the help in advance!

Link to comment
https://forums.phpfreaks.com/topic/178497-need-help-pls-login-to-remote-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.