You are here: Re: How to open a URL directly ? « PHP « IT news, forums, messages
Re: How to open a URL directly ?

Posted by Matthew Weier O'Phinney on 02/18/05 15:32

* Vaibhav Sibal <vaibhavsibal@gmail.com>:
> I have a scenario wherein the people logging into the system have
> different kinds of status as in a person can either be a admin, a
> user, or a supervisor etc. Now I have different web interfaces for all
> these kind of people. What I want to know is what function do i use to
> go to a URL directly in a case where status of the person is something
> like admin or user etc. For ex. if a person Robert is the admin and
> his name and password correctly matches from the database and the
> status of Robert as stored in the database is admin then as soon as he
> pressed the login button he should automatically be forwarded to a
> page, eg. admin.php, where he can access his stuff. Please tell me
> what function should I use ?

header("Location: http://server.tld/path/to/admin/script.php");

Make sure you don't have any output happening before you try and use
this, though.

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

 

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

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