login

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
huggy562
Forum Newbie
Posts: 2
Joined: Mon Jul 26, 2010 5:01 pm

login

Post by huggy562 »

Alright guys, I am very new to PHP. I am trying to make my own website and I thought that it would have a login thing on it so I wouldn't have to bother with it, but it doesn't and I want one!

I know i have to create a database, and I did.

And then the tutorial said that I had to create 4 files. main_login.php, checklogin.php, login_success.php, and logout.php.

So i went to my CPanel and I went to add a file, and I added them. Is that right? If it is, in what location would I add them??

I really don't know what I am doing so please don't be mean. I'm not really sure if this is the right place to be posting this question.

A nice tutorial would be greatly appreciated. Every tutorial I have found confused the crap out of me and it wasn't for beginners, and I tried this one and I understood it, and copied and pasted the code, i don't know if that is right or not either but yeah, it didn't work for me, it doesn't show up on the site. So please help me. Any help will be greatly appreciated.

By the way the website that I got the tutorial off from is:

http://www.phpeasystep.com/phptu/6.html

Thank you SOO much!!
Huggy!
User avatar
iijb
Forum Commoner
Posts: 43
Joined: Wed Nov 26, 2008 11:34 pm

Re: login

Post by iijb »

Hi,
I think you are on the right tutorial link. You also check it with your local machine. Create all files in your www directory. After checking successful you can upload those php files to your server. The location is same as the html file in case of remote server.

Regards
iijb
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: login

Post by Grizzzzzzzzzz »

just follow that tutorial exactly, it's one of the ones i used when i learnt php from scratch :)
huggy562
Forum Newbie
Posts: 2
Joined: Mon Jul 26, 2010 5:01 pm

Re: login

Post by huggy562 »

Haha so the tutorial has to be right if u used it and it worked. Haha i was thinking it was wrong!! My site does have a login but you have to click the register tab..is there anyway to change that?? Im like stuck on this. So i put it in the www part and then i can just.copy and paste and it should work and show up??

Thank you guys so much!! Its my first time with php..i dont mean to be annoyijg.
Any help will be apreciated.
Thanks. I have more quewtions too!!
Post Reply