Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 17th, 2005, 3:52 PM   #1
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
Log in help

How can i have a login in screen on my web page for different users. I need it so that I can put things on my site that can only be accessed by people who have logged in.

P.S.
I am not very good at understanding complicated things so try to make it kind of simple.
crawforddavid2006 is offline   Reply With Quote
Old Jun 17th, 2005, 3:56 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Well, let's start off with this: you know PHP, right?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jun 17th, 2005, 5:06 PM   #3
crawforddavid2006
Expert Programmer
 
crawforddavid2006's Avatar
 
Join Date: Apr 2005
Location: Not sure yet
Posts: 597
Rep Power: 0 crawforddavid2006 is an unknown quantity at this point
Send a message via AIM to crawforddavid2006 Send a message via MSN to crawforddavid2006
I know of it.
crawforddavid2006 is offline   Reply With Quote
Old Jun 20th, 2005, 3:40 AM   #4
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
well i would first look up a web scripting language such as php learn it and as you learn it you will find out how to make the login page.
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Jun 24th, 2005, 9:46 PM   #5
foxcity911
Programmer
 
Join Date: Jun 2005
Location: Queensland
Posts: 37
Rep Power: 0 foxcity911 is on a distinguished road
learn php

you could either put the username and password on the page itself, but that isnt secure at all but easy, or you could link it to a database. you have to make watever is typed into the user and pass txt boxes equal variables such as $user or $pass respectively. no DB means you could say
if ($user == john, $pass == smith) {

//code that redirects to the members area

}

that is the easiest way of making a 'login' of sorts.
but i think you should learn some php because if you dont know the basics you are screwed even doing it the easy way.
foxcity911 is offline   Reply With Quote
Old Jun 24th, 2005, 10:17 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
What language is this ???
Quote:
f ($user == john, $pass == smith)
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 25th, 2005, 12:26 AM   #7
BlazingWolf
Hobbyist Programmer
 
Join Date: Sep 2004
Posts: 207
Rep Power: 5 BlazingWolf is on a distinguished road
Yeah it would be

if($user == "john" && $pass == "smith")
{
//Your commands here
}

In php
__________________
_______________________________
BlazingWolf
BlazingWolf is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:10 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC