Τη Σάββατο, 15 Σεπτεμβρίου 2012 8:22:39 μ.μ. UTC+3, ο χρήστης Νικόλαος Κούρας 
έγραψε:
> Τη Σάββατο, 15 Σεπτεμβρίου 2012 7:56:31 μ.μ. UTC+3, ο χρήστης Chris Angelico 
> έγραψε:
> 
> > On Sun, Sep 16, 2012 at 2:53 AM, Νικόλαος Κούρας <nikos.gr...@gmail.com> 
> > wrote:
> 
> > 
> 
> > > The 'page' form field is of couse neccessary because how else the python 
> > > counter.py script would know which html file triggered it so to present 
> > > it and do its log thing?(i intend to create a few html files)
> 
> > 
> 
> > >
> 
> > 
> 
> > > I still do not see why you say that it might be redundant.
> 
> > 
> 
> > 
> 
> > 
> 
> > You create one 'page' value in the form, and another one in the RewriteRule.
> 
> 
> 
> i changes the .htaccess to 
> 
> 
> 
> RewriteEngine On
> 
> RewriteCond %{REQUEST_FILENAME} -f
> 
> RewriteRule ^/?(.+\.html) /cgi-bin/counter.py?htmlpage=$1 [L,PT,QSA]
> 
> 
> 
> but now my webpage presents the error right away.
> 
> I dont understand.

aahhh! alo it needed change to

page = form.getvalue('htmlpage')

now its working! at last!

but can you please tell me what was wrong?

Tha names of the variables was the same both in counter.py and the .htaccess

But why was that confusing?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to