PROBLEM with form in cgi

Steve Holden sholden at holdenweb.com
Mon Sep 30 21:41:08 EDT 2002


"CheapSkate" <gua81 at XXXyahoo.com> wrote in message
news:anas2k$i2b$1 at lust.ihug.co.nz...
> HI,
> I'm having problem trying to figure out what is wrong with my cgi script.
>
> here's the code that's creating the problem in the apple.cgi
>
The name of your script isn't very relevant. While it's good you tried to
remove extraneous code, unfortunately you may have gone too far. You often
find that this kind of message is actually due to an earlier error in the
source.

> print """<form action="delete.html" name="myform" method="post">"""
>                              ^
> it keeps on saying invalid syntax in the action(as indicated)

The caret is pointing at the dot in "delete.html"?

> and if I try to change it to this
> print """<form action="delete.html" name="myform" method="post">"""
>                              ^
Isn't this exactly the same as the lines above?

> it gives the error at action.
>
I would suggest looking for an unclosed triple-quote (""") above this
statement. That's typical of the kind of error that generates this anodyne
and not-very-helpful message. Given the causes, it would be difficult to
know what error message you *could* use to give the programmer more idea
what went wrong.

Good luck.

regards
-----------------------------------------------------------------------
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Previous .sig file retired to                    www.homeforoldsigs.com
-----------------------------------------------------------------------






More information about the Python-list mailing list