--- Fuzzyman <[EMAIL PROTECTED]> wrote:

> 
> praba kar wrote:
> > Dear All,
> >     I have doubt in python cgi script. I describe
> > that doubt with below code
> > import cgi
> > form = cgi.FieldStorage()
> > passwd = form['passwd'].value
> > print passwd
> > But Now I want to assign some value to
> form['passwd']
> > field value
> > form['passwd'] = 'surese'
> > Now If I try to print
> > print form['passwd'].value. It will raise error.
> > So kinldy let me how to edit or append instance
> > of FieldStorage class
> >
> 
> A form *isn't* a dictionary, this means that your
> code :
>     form['passwd'] = 'surese'
> 
> is wrong.
> Turn the form into a dictionary and use that.

How Can I convert a form instance into dictionary
Kindly let me know.

Why are you trying to assign values directly in the
form ?
       
      To reduce variable usage in my project.
regards
Prabahar    



                
__________________________________________________________
How much free photo storage do you get? Store your friends 'n family snaps for 
FREE with Yahoo! Photos http://in.photos.yahoo.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to