Reply to Login / Password

Your name:

Reply:


Posted by FP on 07/17/06 18:45

I want to put some code at the top of my pages which will prompt the
user for a name & password if the session variable IDUser is not set.

How do I get the browser to display the login / password dialog and how
do I access the data the user entered.

Can I put the code that gets the login / password in a page of it's own
and have the browser call that page when the IDUser isn't set, and if
so how do I do it eg.
<?
session_start();
If($_SESSION['IDUser']==''){
//how do I tell it to do the authentication page
}else{
//rest of my code
} ?>


Once the user entered a login / password and I set the IDUser on the
authentication page, how do I tell it to resume loading the original
page (the one that had the above mentioned code on it)?

[Back to original 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

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