HOW TO INCLUDE A DESIGNED PAGE USING PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
oyedele
Forum Newbie
Posts: 17
Joined: Mon Jun 27, 2011 6:59 am

HOW TO INCLUDE A DESIGNED PAGE USING PHP?

Post by oyedele »

I designed a page already and want to situation where when a user clicks login, it will display that page. Please ur reply will be hight appreciated

Thanks very much
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: HOW TO INCLUDE A DESIGNED PAGE USING PHP?

Post by twinedev »

Just to clarify, all you are wanting to do is make sure they enter a username/password to view the page in question?

If that is the only point, I would recommend using Apache's built in password protection, as then you do not have to mess with anything on the page you want to protect, just make sure it is in its own directory.

For information (and tools to create the .htaccess/.htpasswd files for ya), see http://tools.dynamicdrive.com/password/

-Greg
Post Reply