Solved

CGI Database

Posted on 1998-08-15
4
186 Views
Last Modified: 2013-12-25
I need a Perl Script that will allow me to have a "user" editable database.  I have a membership list with each member having his own page [profile].  I would like if each user could have the ability to change his/her information with a password [thier own preferably].  I do not wish to use a true database.  I've tried the program WODA and it was too complicated and wouldn't do what I wanted.
Speed is of no concern to me.  Is what I want to do possible?  If so, I need a good perl script for it.  The whole idea is simple.  To see an example of the pages I'm working on, go to:
http://www.primenet.com/~sircaleb/
It is under the roster section.  In that section, you'll see a list of names, click on a name and that takes you to that member's profile sheet.  It is the profile sheet, top right portion next to the picture, that I want to be "user-editable."  Any help is greatly appreciated.
0
Comment
Question by:SirCaleb
  • 2
4 Comments
 
LVL 7

Expert Comment

by:yoren
ID: 1827425
Perl has some "built-in" database capability. If you know how to use hashes (also known as associative arrays), it's just as easy to access a Perl database. Make sure you're using Perl 5, and then do something like this:

# Some global variables you'll need (O_*)
use Fcntl;

# The module that performs the database operations
use SDBM_File;

# Bind your database to a hash called "profiles"
tie %profiles, "SDBM_File", "database_filename", O_RDWR|O_EXCL, 0644;

Check out "perldoc -f tie" and "perldoc SDBM_File" for more info.
0
 
LVL 2

Author Comment

by:SirCaleb
ID: 1827426
That doesn't help me very much....I'm very new to CGI/Perl. My server does have Perl 5.  Could you write up a script and directions and email to me?
sircaleb@primenet.com

0
 
LVL 2

Accepted Solution

by:
ndnet earned 20 total points
ID: 1827427
take a look at www.cgi-resources.com
As I remember they had something like that you want.
0
 
LVL 2

Author Comment

by:SirCaleb
ID: 1827428
It turns out that what I want to do is too complicated....I'll give ya the points anyhow...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

832 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