Trouble with CGI code from Code Example 7.3 of the "Python Interactive CGI Tutorial"
epsilon
cesmiga at gmail.com
Tue Aug 21 12:09:23 EDT 2007
Gabriel,
Thanks a bunch for your time! That took care of it.
Christopher
Gabriel Genellina wrote:
> On 21 ago, 11:14, epsilon <cesm... at gmail.com> wrote:
>
> > I'm having trouble with this script from a CGI lesson I'm working and
> > I can't seem to figure it out. I was wondering if someone could tell
> > me what is wrong. I've spent several hours trying to debug, but no
> > success. Any help would be appreciated.
>
> Next time try to post the exact error message you get - working
> crystall balls are hard to find nowadays :)
> Ok, it's a syntax error, perhaps you didn't get a useful response from
> the server.
> The error is here:
>
> > if (session_key == 0):
> > session_key = create_session(id)
> > print id, , you are logged in with key:", session_key,
>
> That should read:
>
> print id, "you are logged in with key:", session_key, "\n"
>
> --
> Gabriel Genellina
More information about the Python-list
mailing list