Jump to content


Photo

Password Problem


  • Please log in to reply
2 replies to this topic

#1 adam84

adam84
  • Members
  • PipPipPip
  • Advanced Member
  • 289 posts
  • LocationOntario, Canada

Posted 26 October 2006 - 02:37 AM

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
If 'Ctrl + v' and 'Ctrl + c' didnt exist, I don't think I would ever program...

#2 vbnullchar

vbnullchar
  • Members
  • PipPipPip
  • Advanced Member
  • 428 posts
  • LocationPasig City, Philippines

Posted 26 October 2006 - 04:06 AM

<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') >


Registered Linux User #399942
Ubuntu User #14134
--
my blog

#3 mb81

mb81
  • Members
  • PipPipPip
  • Advanced Member
  • 120 posts

Posted 26 October 2006 - 04:34 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users