Need help in a Simple CGI

Thomas A. Bryan tbryan at arlut.utexas.edu
Sun May 16 18:21:18 EDT 1999


Jose A. Antich wrote:

> I need to write a simple a CGI Script that stores Names and E-mails from a
> form of a webpage. 

Are you able to get the name and e-mail from the form?
If so, then you could just open and append to a file (as long as 
the CGI script has permission to access the file).  If you don't 
need to be able to read the file directly, you could use Python's 
dbm interfaces (section 7 of the Library Reference).  Another 
alternative is the shelve module (section 3 of the Library Reference).

---Tom




More information about the Python-list mailing list