Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php login page

Status
Not open for further replies.

rrmcguire

Programmer
Joined
Oct 13, 2010
Messages
304
Location
US
Hello,

currently at I'm creating a login section where the user will put in a user name, password, and there will be a dropdown to select which page this will direct them to based on their selection.

My question is can this be created in that blank black section I have on the page with the current page as is, or does the actual need to be a .php page?

Also, could you please direct me to a tutorial, or give me a quick rundown on how easily this can be created. Ive done this in asp, and would think it would be very similar

thanks
 
no difference between asp and php. there are many different ways to create login scripts. to my mind the easiest way is to create a function that is called as the first line of every protected page. the function will call exit() or redirect to a login page (and then call exit) if the connection is false. otherwise it just returns silently so that the page continues loading.

you can include php within html pages in two manners:

1. iframe
2. change the httpd.conf to push .html files through the php interpreter.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top