Hi shaheerpak, I'm not targetting you personally, so don't get offended. I've seen a lot of ppl asking the same basic questions all over this forum. That brings the questions,
1. You really knows nothing about how and where to get started
2. You don't know how to search the forum for previously asked questions OR search for tutorials in the web
3. You're hoping to get some sample code to start off and probably use it as is
4. You're not really interested to learn
5. You just want to get your assignment done
For what I think, if you're really interested to learn or at least curious to know how it works, you would have looked into books or googled for tutorials. Just search for "php login tutorial", you'll get 14million hits.
php login tutorialSo, asking question and you ended up being thrown off. Well , I guess quite a lot of us here are lazy to answer this questions already, considering no one has replied in the last 12 hours.
So, again when you should be asking questions? Question asked should have been more tricky or don't have a straight forward answer. Asking how to build a login page is like asking how to fill a bottle. Instead, if you ask something say how to limit the number of character in the login name. That might bring some interest among those who would answer. Because at least we knows that you've tried something, and got stuck due to unknown reason. It shows that you've put some effort into it before you start asking questions.
I might be wrong, and you're just being unlucky that I reply to you like this. Actually for the previous few poster with similar question, I wanted to reply the same, just that I hold up until now.