Problem filling an html form
nikos.kouras at gmail.com
Fri Jan 13 15:16:43 EST 2012
On 13 Ιαν, 21:35, MRAB <pyt... at mrabarnett.plus.com> wrote:
> On 13/01/2012 17:02, Íéêüëáïò Êïýñáò wrote:
> > # get some enviromental values
> > form = cgi.FieldStorage()
> > mail = form.getvalue('mail') or ''
> > comment = form.getvalue('comment') or ''
> > # insert guest comments into database if form was submitted
> > if '@' in mail and comment not in ("ÑùôÞóôå ìå ó÷åôéêÜ..."):
> Do you really want to look for the comment in that string instead of
> looking for that string in the comment?
What do you mean?
I just want to check that the user hasnt pressed the submit button
leaving the default values with the input comment box.
Iam not sure what you mean.
More information about the Python-list