Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18936

Re: Problem filling an html form

Date 2012-01-13 19:35 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: Problem filling an html form
References <adffac88-65e7-4057-b7b0-956fde49a8bd@p42g2000vbt.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.4724.1326483339.27778.python-list@python.org> (permalink)

Show all headers | View raw


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 ("Ρωτήστε με σχετικά..."):

[snip]

Do you really want to look for the comment in that string instead of
looking for that string in the comment?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem filling an html form Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2012-01-13 09:02 -0800
  Re: Problem filling an html form MRAB <python@mrabarnett.plus.com> - 2012-01-13 19:35 +0000
    Re: Problem filling an html form Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2012-01-13 12:16 -0800
      Re: Problem filling an html form MRAB <python@mrabarnett.plus.com> - 2012-01-13 21:13 +0000
        Re: Problem filling an html form Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2012-01-13 13:30 -0800
          Re: Problem filling an html form Νικόλαος Κούρας <nikos.kouras@gmail.com> - 2012-01-13 17:20 -0800

csiph-web