You are here: Re: Login / Password « PHP Programming Language « IT news, forums, messages
Re: Login / Password

Posted by clashers5@gmail.com on 07/19/06 14:06

Good point. Thank you

william.clarke wrote:
> Geoff Berrow wrote:
> > Message-ID: <1153193066.107423.267520@m79g2000cwm.googlegroups.com> from
> > clashers5@gmail.com contained the following:
> >
> > > exit("<script>window.location.href='login.php?page=$page</script>");
> >
> > Fine but why rely on Javascript? Why not just do:
> >
> > header("Location:login.php?page=$page");
> > exit();
>
>
> Exactly what I was about to post, but Geoff beat me to it :)
>
> header("Location:login.php?page=$page");
> will work no matter what Javascript settings the user has, while:
>
> exit("<script>window.location.href='login.php?page=$page</script>");
> relies on the visitor's browser understanding javascript (not such a
> big problem these days) and on them allowing JavaScript redirects
> (which can still be a problem)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация