Jump to content

Password Problem


adam84

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
Link to comment
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') >

Link to comment
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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.