You are here: Re: How to open another page by PHP « All PHP « IT news, forums, messages
Re: How to open another page by PHP

Posted by Stefan Mueller on 02/02/06 11:46

>> If you try a open page in the same window you can use this code
>> header("Location: login.php");
>
> He wrote, "I'd like to open another page", so header option is a no go,
> only clientside script can do the trick.

Sorry you're right, my question was wrong. I don't like to open another page
in a new window I just like to open the page 'login.php' (within the same
window) if '$_SESSION['my_session_variableberechtigung']' is not set.
Therefore I think
header("Location: login.php");
will do what I need.
Actually I'm not sure if this statement is exactly what I was looking for
because according to the documentation
header("Location: http://www.example.com/");
redirects the browser.
What I need is a statement which tells PHP not to execute the code of the
actual PHP script if '$_SESSION['my_session_variableberechtigung']' is not
set but instead to open 'login.php' and execute that file.

Stefan

 

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

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