Logging in to a different area

Hi Guys,

Quick question.

http://magento.softigma.com/coffeyco/

The login box in the top right hand corner, I would like a user to be able to fill in their username and password, but when they click ‘Login’ to go to and login here:

http://www.guard.com.au/live/html/login.php?system_id=1&bureau_id=305

Is that possible?

Kosta

Sure. Do a header redirect.

header('Location: http://www.guard.com.au/live/html/lo...&bureau_id=305');

Yes, but does that login automatically? I know I can just have a link at the top, but I want it to login with the details provided on the first link I sent.

Thanks

Try make the login form in http://magento.softigma.com/coffeyco/ like following:

method= POST action= “http://www.guard.com.au/live/html/login.php?system_id=1&bureau_id=305” name=‘login_form’

and then include the hidden field that the second login form has.’

Hidden field? How do you know there’s a hidden field? I just see a username/password on that guard.com.au website

That’s because it’s hidden :slight_smile:
Take a look at the source code of that page.

when i open the source code file, i see hidden field ,but i dont know, you just need to parse the values which are exactly the same as the guard.com.au s login page to the exactly the same asction link.

Ok, from the sounds of it, shouldn’t be that difficult. Thanks.