Forum Moderators: phranque

Message Too Old, No Replies

.htaccess via Web Page

Using web page to access directory instead of browser dialog

         

HeadOffice

7:56 pm on Jun 1, 2007 (gmt 0)

10+ Year Member



Hi everyone! Got a slight problem I was hoping someone could help me with...

Problem:
I have a directory secured with .htaccess and everything works fine. HOWEVER - to access the directory, the browser displays a pop-up dialog box for user ID and password.

Question:
Is it possible to create a webpage (better looking and can display more information than the dialog box) to get the User ID and password from the user and pass it on (somehow) so the user can access the protected directory? In other words, how do I pass the user ID and Password from my page?

Many thanks in advance.

HO

HeadOffice

10:20 pm on Jun 3, 2007 (gmt 0)

10+ Year Member



[BUMP]

Any ideas anyone?

Marshall

11:09 pm on Jun 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



An .asp log in page comes to mind as one solution. No alert windows, just a regular page.

HeadOffice

11:51 pm on Jun 3, 2007 (gmt 0)

10+ Year Member



Apache can run ASP pages? I thought that was a Windows thing. My Apache server is on Unix...

g1smd

12:18 am on Jun 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Whatever that ASP solution is, I am sure that the equivalent could be coded up in PHP by someone in the know.

HeadOffice

12:20 am on Jun 4, 2007 (gmt 0)

10+ Year Member



Hopefully there's someone in the know that can point me in the right direction...

Marshall

12:23 am on Jun 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Did you try a search for "PHP login script". And sorry about the .asp suggesstion. I wasn't paying attention. Oops!