I am now stuck again. I am at my wit's end. The course I am taking is a supposed "beginners" course. It is a distance education class, and our textbook does NOT contain the information required to do all of the assignments (perhaps it was designed for people with more experience and/or knowledge?). Anyways, our latest assignment is that we have to create a working chequebook (view here: http://cmpt165.cs.sfu.ca/~ggbaker/examples/chequebook.html)
This is what I have so far (see attached). I am so completely lost. Our textbook does not tell us how to implement a password security system on a website, or how to store data. The project is already over a week late, and I feel absolutely hopeless about it. Could you possibly give me some pointers on this? Please, please please? Thank you in advance, Jennine Gates -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 04/08/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.1/64 - Release Date: 04/08/2005Title: CHEQUEBOOK
CHEQUEBOOK
password:
Password:
Cheque number:
Amount: $
Description:
chequelib.pyc
Description: Binary data
import cgitb; cgitb.enable() import cgi form = cgi.FieldStorage() import string import chequelib # print header stuff print """Content-type: text/html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <html><head> <title>All Cheques</title> </head><body>""" if form["password"].value= 1234 form action "allcheques.py" else print "invalid password" if form["password2"].value= 1234 formaction"addcheques.py" else print "invalid password" class chequeamountdescription: def__init__(self, chequenumber, amount, description): self.chequenumber = chequenumber self.amount = amount self.description = description append chequeamountdescription
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor