On Sun, Sep 1, 2013 at 4:50 PM, Ferrous Cranus <nikos.gr...@gmail.com> wrote: > Ye i'm aware that i need to define variables before i try to make use of them. > I have study all of your examples and then re-view my code and i can *assure* > you that the line statement that tied to set the 'host' variable is very > early at the top of the script(of course after imports), and the cur.execute > comes after. > > The problem here is not what you say, that i try to drink k a coffee before > actually making one first but rather than i cannot drink the coffee although > i know *i have tried* to make one first. > > > i will upload the code for you to prove my sayings at pastebin. > > http://pastebin.com/J97guApQ
You're setting host inside a try/except block. Are you getting exceptions that prevent it from being set, perhaps? Also... do you seriously (a) block access if no Referer: header, and (b) permit that access anyway if the user has a non-blank cookie named 'admin'? Seriously?? ChrisA -- http://mail.python.org/mailman/listinfo/python-list