[PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
If we are using the default Apache/PHP authentication, it will always pop up the default login window for login user ID /password. Is there a method to redirect to a customized PHP login page instead of the default pop up window? Thanks ahead. -- PHP General Mailing List

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
Yep. Design your own form, and feed the data from that to $PHP_AUTH_USER and $PHP_AUTH_PW. Don't send the header() for the 403. Cheers Jon -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 17:18 To: [EMAIL PROTECTED] Subject: [PHP] Is there a

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Zhu George-CZZ010
Thanks for the suggestion. I think I didn't explain it clearly, what I really want to do is: whenever someone types any of the secured URL (it might be any secured php page or other files), how can we configure the server to automatically redirect to a customized PHP login page instead of

RE: [PHP] Is there a way not to pop up the default login window?

2001-11-01 Thread Jon Haworth
if (!isset ($PHP_AUTH_USER)) { header (Location: http://mydomain.com/mypage;); } would probably do the trick Cheers Jon -Original Message- From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]] Sent: 01 November 2001 17:51 To: Jon Haworth; [EMAIL PROTECTED] Subject: RE: [PHP] Is