ALL :: ZONES :: login |
|||
| By: Virik |
Date: 12/03/2003 00:00:00 |
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 | 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 | Type : Comment |
|
| Hmm, make a simple login.php with database for me ? ;) :) ;) |
|||
| By: VGR | Date: 13/03/2003 19:16:00 | Type : Comment |
|
| sorry, no time, but you've all the clues I hope 8-) |
|||
| By: Morph007x2b | Date: 15/03/2003 08:50:00 | 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 |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








