Hi All,
I am using web.form. I wonder about how myform['foo'].value get populated
after a POST request when the form was submitted. Why I ask is because I
would like to pre-populate some form fields with a value in the GET request
(when a the form is rendered the first time) from values in the query
string. Of course I can manually say
myform['foo'].value=web.input('foo'=None)['foo'] in the GET method, but in
the POST the myform['foo'].value get's populated automagically from the
data that was posted to the form. I would prefer to use that instead of
having to add extra code in all GET methods to check for values in
web.input().
Cheers,
Dolf.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.