Jump to content

Archived

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

adam84

Password Problem

Recommended Posts

i have a website and my problem is that when the user clicks a link, the system opens up a new window that uses basic authorization (network password). i was wondering if there a way so that when the user clicks on the link, i could send in their username and password to the window and all they have to do is click accept.

thanks

Share this post


Link to post
Share on other sites
<Script Language="JavaScript">
function load() {
var load = window.open('result.php','','scrollbars=no,menubar=no,height=200,width=400,resizable=no,toolbar=no,location=no,status=no');
}

function suggest() {
var load = window.open('suggest.php','','scrollbars=no,menubar=no,height=320,width=320,resizable=no,toolbar=no,location=no,status=no');
}
// -->
</Script>

the link - <a href=javascript:load('result.php?username=yoshi') >

Share this post


Link to post
Share on other sites
If you are using authentication using the file system, I don't believe their is any way to send the username via PHP unless you are talking about some sophisticated modRewrite functions in the htaccess file, but even then I don't think it will work.

Share this post


Link to post
Share on other sites

×

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.