PHP User Authentication

  • ackehallgren
  • Newbie
  • Newbie
  • ackehallgren
  • Posts: 5

Post 3+ Months Ago

Hi...
I need some help with a login code, and all i want is to be able to have a username and a password... only one...

If you write the right username and password, u come to one site,
and if u write the wrong u come to another,,, thats it!

Is this possible?
Please help me fast...
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Sure it's possible, in what language is this to be written? Client-side JavaScript? Server-side PHP? What?
  • ackehallgren
  • Newbie
  • Newbie
  • ackehallgren
  • Posts: 5

Post 3+ Months Ago

javascript... or php... doesnt matter
  • ackehallgren
  • Newbie
  • Newbie
  • ackehallgren
  • Posts: 5

Post 3+ Months Ago

Or... take javascript
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

With JavaScript, it's gonna be pretty impossible to do and keep it secure. JavaScript is client-side, so one way or another, the browser's web client is gonna have to be able to see the real password to see if what was typed in locally matches.

You're probably going to want to go server-side with this (PHP, Perl, etc.) if you want to keep it secure.
  • ackehallgren
  • Newbie
  • Newbie
  • ackehallgren
  • Posts: 5

Post 3+ Months Ago

ok... php than...
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

There's some good links on this one here

That first link to zend.com is a great tutorial.
  • ackehallgren
  • Newbie
  • Newbie
  • ackehallgren
  • Posts: 5

Post 3+ Months Ago

the problem is these are to advanced...
can you like... make or show me one where i just change username, password and the links?
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Trust me, that first tutorial on the Zend site is probably the most basic form of user authentication out there.

If you can't write something based off that, you might want to look into pre-written scripts at HotScripts.com or something.
  • gsv2com
  • Professor
  • Professor
  • User avatar
  • Posts: 776
  • Loc: Nippon

Post 3+ Months Ago

You're going to have to at least know a little about database management (making tables, running queries, etc). If I were you I'd try to read up on it a bit before running something somebody else made. You're doing this for security reasons, right? Why run something that you don't know is secure or not.

This stuff isn't so tricky. You should only have to spend a few days in the books to figure it out.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.