req: help with trouble shooting
Psybar Phreak
gotyoubacktoo at yahoo.com
Sat May 3 20:01:13 EDT 2003
ok - i have weeded out a few bugs and still can't work out what's wrong with
this, any help?
----------------
#!/usr/local/bin/python
import string, os, cgi
form = cgi.FieldStorage()
user = string.strip(form['loginField'].value)
pswd = string.strip(form['password1Field'].value)
outFile = open('users.dat', 'w')
outFile.write(user)
outFile.write("\n")
outFile.write(pswd)
outFile.close()
-------------
if from a simple web page that has a login and password fields (loginField
and password1Field) and writes these values to users.dat in the form :
user
pswd
can't see why this wouldn't be working, any help would be great!
thanks heaps y'all!!
More information about the Python-list
mailing list