HELP ME! A Stupid CGI

William Park parkw at better.net
Sun May 16 22:05:10 EDT 1999


Jose A. Antich <jantich at cantv.net> wrote:
> Hey pals I need help!!!

> I need to write a simple a CGI Script that stores Names and E-mails from a
> form of a webpage. I can't seem to find the simple commands to store and
> create a little database. I have tried the Python Website and some tutorials
> I will really apreciate your help....! Thank's a lot

> J.Antich
> jaa418 at telcel.net.ve

I don't how to bite this one.  CGI script gets its data from HTML form
that goes something like 
    <form method=GET action="http://.../cgi-bin/name_email.py">
	name: <input name="name">
	email: <input name="email">
	<input type="submit">
    </form>
When user click "submit" button, CGI script will get name/email data
in QUERY_STRING environment variable.

Read documentation on 'cgi.py' for how to parse the data into
dictionary.  As far as database, what's wrong with Python dictionary
that goes something like
    name_email = {'Antich': 'jaa418 at telcel.net.ve', ...}

William




More information about the Python-list mailing list