Problem filling an html form
MRAB
python at mrabarnett.plus.com
Fri Jan 13 14:35:41 EST 2012
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?
More information about the Python-list
mailing list