Re: [phplib] Custom Login Screen From: Florian Gnägi (gnaegi <email protected>)
Date: 05/02/00

hi

you can certainly do this by using java-script. put something like this in
a 'on load' java -script function or something:

javascript:{win=window.open('login.php3','login','width=300,height=150,resizable=0,scrollbars=0');win.focus();}

when you press the submit-button in the loginscreen you need javascript
again to tell your mother-window to refresh (this time the user will be
authenticated).

however, this will have several disadvantages: users will need java-script
and it is not defined what should happen if the user closes the
mother-window first and sends the passwort then. you can also use java
script to open a dialog box which might be a much better idea than the
above

javascript:{win=window.prompt(xx some stuff here xx);}

actually this should work fine but you can not style the login-popup as
you can with the first version. and i have no idea whether this is working
with IE or not.

The regular popup-window, as you can find on most sites which have any
kind of authentication mecanism, is something completely different and has
many, many disadvatages like sending clear text passwords over the net
over and over again for every single document which is protected and all
the images which usually reside in the same directory. there are many
reasons why one should not use this in an internet app but choose
something much more flexible like phplib's authentication mecanism which
does send clear text passwords only once per session.

personally i like to log in directly on the page and not in a separat
popup window. popup windows have the very uncool feature to disapear
behind bigger windows and are in a way unnecessary since the original
window can not display anything usefull unless the user is
authenticated... so why using just another window?

oups, well, my netscape just killed itself...

-florian

On Tue, 2 May 2000, M.J.M. Pijnappels wrote:

> I would like to use a custom login form. Is it possible to use a kind of
> "popout-window" login form as you can find on www.php.net in stead of the
> default login form. Has anyone did this before and would like to share his
> experience?
>
> Any help is appreciated ..... :)
>
> Regards,
>
> Marc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>