I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..
vindyauwu 0 Newbie Poster
Recommended Answers
Jump to PostYour login form should be separate to any processing code.
Example - all pages (pseudocode):
session_start include config.php include loginswitch.php DTD, head body navigation menu echo $loginhtml page content footer
The loginswitch.php has the code to determine what's displayed: login form or 'logged in as xxxx' …
Jump to Post@andyy121,
You may not be aware of general forum accepted practices, but you may want to consider starting your own thread if you need help rather than hijaking someone else's.
Jump to Postsession_start should be at the top of the page before any DTD, html or other server output.
Jump to PostWell, I suppose it doesn't have to be - just as long as you can guarantee that there isn't any output from that file, e.g. error messages etc. Just seems a lot safer to me.
Jump to Posttell me how i insert data in to data base, how to select the data in the database
There are many many tutorials on the web that cover this very basic information. Nobody here is going to write a new one just for you. Do some research of …
All 23 Replies
ckchaudhary 5 Newbie Poster
vindyauwu 0 Newbie Poster
ckchaudhary 5 Newbie Poster
vindyauwu 0 Newbie Poster
simplypixie 123 Posting Pro in Training
vindyauwu 0 Newbie Poster
simplypixie 123 Posting Pro in Training

diafol
andyy121 -9 Junior Poster
JorgeM 958 Problem Solver Team Colleague Featured Poster
vindyauwu 0 Newbie Poster

diafol
anjalis683 0 Newbie Poster
simplypixie 123 Posting Pro in Training

diafol
vindyauwu 0 Newbie Poster
sultankhan 0 Junior Poster in Training

diafol
amit_48 0 Newbie Poster
benanamen commented: Hijacked 5 year old thread. +0
amit_48 0 Newbie Poster
benanamen commented: You hijacked a 5 year old thread with obsolete, dangerous code. +0
Imran_22 -3 Newbie Poster
JamesCherrill commented: Lazy, entitled. -3
benanamen commented: This is a 5 year old thread you hijacked. Start your own thread and show some effort. +0
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
VINITHAPRIYA R 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.