adam84 Posted October 26, 2006 Share Posted October 26, 2006 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 Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted October 26, 2006 Share Posted October 26, 2006 <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') > Quote Link to comment Share on other sites More sharing options...
mb81 Posted October 26, 2006 Share Posted October 26, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.