Posted on 2003-03-12
Medium Priority
Last Modified: 2006-11-17
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 ? :)
Question by:Virik
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Accepted Solution

VGR earned 100 total points
ID: 8122388
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.


Author Comment

ID: 8128140
Hmm, make a simple login.php with database for me ? ;) :) ;)
LVL 15

Expert Comment

ID: 8131038
sorry, no time, but you've all the clues I hope 8-)

Assisted Solution

Morph007x2b earned 100 total points
ID: 8144185
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.

wwww.multicode.net - mPort
wwww.phpnuke.org - PHPNuke
LVL 33

Expert Comment

ID: 11934542
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    Split: VGR {http:#8122388} & Morph007x2b {http:#8144185}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

WordPress Tutorial 2: Terminology

An important part of learning any new piece of software is understanding the terminology it uses. Thankfully WordPress uses fairly simple names for everything that make it easy to start using the software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question