visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

ALL :: ZONES :: login


By: Virik U.S.A.  Date: 12/03/2003 00:00:00  English  Points: 50 Status: Answered
Quality : Excellent
I've got 3 users on a move list web site, a list of our dvd's, and I need a script
that allows each of the users to login and add a movie to their list.
They should each have their own list.php with a list of movie titles listed
in alphabetic order...

Up to the challenge ? :)
By: VGR Date: 12/03/2003 19:35:00 English  Type : Answer
without a database ?

Let's say so

Given you've only three persons able to login, no big problem.

Key stuff is :
-sessions, with a variable like $sess_identif which is set to 0 if not set and if zero will trigger the display of the login FORM then exit the script.
-if 1, will display one of the three DVD lists (I really suggest a database :D) but a text file will do. You may even modify it easily using a TEXTAREA in an HTML FORM

-the login FORM is standard HTML with "login" and "password" (types : text and password) fields.
-on submission of the FORM, use either directly passed variables (if register_globals=On) or $_POST[] to retrieve data submitted.
Then compare the password with one, two, then three of the password you hardcoded in the script.
If positive, set $sess_identif=1, session_register("sess_identif"); and do the same with $sess_pseudo as entered.

Easy.
By: Virik Date: 13/03/2003 01:47:00 English  Type : Comment
Hmm, make a simple login.php with database for me ? ;) :) ;)
By: VGR Date: 13/03/2003 19:16:00 English  Type : Comment
sorry, no time, but you've all the clues I hope 8-)
By: Morph007x2b Date: 15/03/2003 08:50:00 English  Type : Assist
Wait, ... make a database for you? We don't even know if you have a Database :-p


If you *DO* have a MySQL database, why don't you download a portal system? They come with member systems an private messages, so you can code an easier script like you want.


w<A HREF="http://www.multicode.net">www.multicode.net</a> - mPort
w<A HREF="http://www.phpnuke.org">www.phpnuke.org</a> - PHPNuke

Do register to be able to answer

EContact
browser fav
page generated in 304.551840 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page