Cross page submission

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
t-cat
Forum Newbie
Posts: 12
Joined: Fri Apr 07, 2006 5:40 am
Location: South Africa

Cross page submission

Post by t-cat »

Scenario:

Website A has a user login screen, but does not have the desired appearance. Website A can't be changed.

Website B has a user login form, has the desired appearance, and can be changed.

Objective:

When a user clicks on Submit on Website B, the form information is sent to website A and submitted, so the end user never actually sees website A.

Any solutions?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Change the 'action' in the form on pageB to one of your own scripts.
In that script you gather the credentials, use curl to perform the request at pageA with the submitted credentials, and send back the results to the user.
User avatar
t-cat
Forum Newbie
Posts: 12
Joined: Fri Apr 07, 2006 5:40 am
Location: South Africa

Post by t-cat »

Thanks for the help. Will look into curl.
Post Reply