...

View Full Version : Login to external homepage



Pelle P
03-25-2011, 10:56 AM
Hello experts

I have a homepage (Joomla), where it is possible to login to an external homepage (Not Joomla). Everything is working OK, but I miss the "Remember me" function. I suppose I need a cookie functionality.

As it is now I use a simple script:


<script type="text/javascript">
function displaymessage()
{
var username = document.getElementsByName('username')[0].value;
var password = document.getElementsByName('password')[0].value;
window.open('https://memberservice.sport-solutions.dk?username=' + username + '&password=' + password);
document.getElementsByName('username')[0].value = '';
document.getElementsByName('password')[0].value = '';
}
</script>

Experts has told me, it would be smarter and more safe to use a php script...

You can see the homepage here: http://letsmove.dk/
(The script is hidden to the right under "Online holdbookning og brugerprofil".

Can anybody help me fixing this problem?

Actually I am looking for someone I can use for small jobs like this. I am building Joomla homepages, and I often need a programmer for helping with details like this.

Best Regards

Pelle

Fumigator
03-25-2011, 03:39 PM
The cookie should be set in your other page-- the memberservice.sport-solutions.dk page, only after you've validated the username/password. And yes in that page, you'll want to do this validation on the server side (PHP or whatever).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum