Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: CGI

by setantae (Scribe)
on Apr 02, 2000 at 07:36 UTC ( [id://6670]=note: print w/replies, xml ) Need Help??


in reply to CGI

You could do this the way chromatic suggested, with a persistent array.
Another way to do it would be with the hidden input type.

However, looking at what you're trying to do here, there's really no need for state maintenance.
Therefore, all you'd need to do is to log all the input you get to a file (a flat text file would do if you're not expecting it to get big), or to a database (which can then do all the sorting for you).
The flat text file approach would involve the use of something like:

use CGI; open (DB, "data") || die "$!"; $cgi_object = new CGI(DB);
and the database one will depend on DBI.pm and the relevant DBD module.
Is the above what you are actually trying to do, or this an XYZ question?

setantae@eidosnet.co.uk|setantae|www.setantae.uklinux.net

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://6670]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found