HTTP authenticate header

HTTP authenticate header

am 24.05.2007 08:56:45 von Chandar V R

Hi,
I am invoking a HTTP authenticate header in PHP,it opens as a popup.Is
it possible for emebeding the same in the web page and ask the user for
entering the user credentials and send the same data to the backend?

thanks/Chandar

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: HTTP authenticate header

am 24.05.2007 10:08:00 von Darren Whitlen

chandar wrote:
> Hi,
> I am invoking a HTTP authenticate header in PHP,it opens as a popup.Is
> it possible for emebeding the same in the web page and ask the user for
> entering the user credentials and send the same data to the backend?
>
> thanks/Chandar

You'll be needing Javascript for that.
Google around for "javascript prompt"

Darren

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: HTTP authenticate header

am 24.05.2007 10:14:19 von Chandar V R

but basically i don't want to popup,i want to embedd the same in
webpage.can you breif me on this??
thanks/Chandar
Darren Whitlen wrote:
> chandar wrote:
>> Hi,
>> I am invoking a HTTP authenticate header in PHP,it opens as a
>> popup.Is it possible for emebeding the same in the web page and ask
>> the user for entering the user credentials and send the same data to
>> the backend?
>>
>> thanks/Chandar
>
> You'll be needing Javascript for that.
> Google around for "javascript prompt"
>
> Darren
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: HTTP authenticate header

am 24.05.2007 12:09:33 von Stut

chandar wrote:
> I am invoking a HTTP authenticate header in PHP,it opens as a popup.Is
> it possible for emebeding the same in the web page and ask the user for
> entering the user credentials and send the same data to the backend?

You're using HTTP authentication, therefore PHP does not get involved at
all in providing a way for the user to enter their username and
password. What you're talking about is providing an HTML form for the
user to enter their details into - also known as form-based
authentication - which is a very simple thing to do.

Google for terms like "php login form" or similar, you'll get a good
starting point from that.

-Stut

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php