Help Needed
| From: | Pushpinder Singh Garcha | Date: | Tue, 04 Feb 2003 17:08:27 +0000 |
| Subject: | Help Needed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134293@lists.php.net to get a copy of this message | ||
Hello All:
My question is related to authentication. I have made a login system using PHP Sessions and MySQL. Once the user gets authenticated on the website I want to be able to allow him to see some html pages on the website. Only users who have logged in are able to see such a files. I have asked this question before , but still I have some doubts.
My code will check for:
if (session_is_registered($valid_user))
{
/// display the reqd page
}
else {
DISPLAY ERROR MESSAGE and ASK USER TO LOGIN
}
How should I display the page ... the page has a lot of html code and
trying to write echo " blah blah blah ..... ";will not be a an option. Please suggest a way out . Many Thanks Pushpinder Pushpinder Singh Garcha _________________________________ Web Architect