help with trouble shooting

Psybar Phreak gotyoubacktoo at yahoo.com
Sat May 3 21:13:23 EDT 2003


no wrries all - worked everything out - thanks heaps guys!!


"Psybar Phreak" <gotyoubacktoo at yahoo.com> wrote in message
news:3eb45849$0$24559$afc38c87 at news.optusnet.com.au...
> 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