Jump to content


login scripts

  • Please log in to reply
3 replies to this topic

#1 rtown

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 22 January 2003 - 09:48 PM

I am hoping that someone may be able to help me out finding a nice \"simple\" login script using PHP and MySQL, just a simple check database, prompt for first time logins etc. If you know of any good links or scripts I am desperate, this is a minor side part of my project and not much time to focus on it.

Here\'s hopin :lol:
cheers, robbie

#2 ToniVR

  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationBelgium

Posted 23 January 2003 - 01:18 PM

- tabel \'users\'
- field \'username\'
- field \'password\'

Make a form where the users must provide their info.

Check for existence in the db, if so, set the username in $_SESSION[\"username\"] and do a session_start();
The session_start() should occure on each page at the top.

If not occuring in the db, you might ask for more info, or a retype of the password.

Nothing much to do ;-)
If you need sample-code, just ask.


#3 AndrewBacca

  • Members
  • Pip
  • Newbie
  • 6 posts
  • LocationIsle of Wight, Uk

Posted 30 January 2003 - 05:38 PM

yes please :P

ive got so far the user can login on one page but not others and ive spent most of 2day tring to work out sessions so some sample code would be great :D

Andrew :mrgreen:
Join a brand new astronomical community @ Astro-space.net

#4 benW

  • Members
  • PipPip
  • Member
  • 12 posts
  • LocationWaukesha WI

Posted 02 February 2003 - 02:00 AM

Here you go!

<?php str_replace("ASP", "PHP", $str); ?>

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users