CGI python use "under a curse"

Steve Holden steve at holdenweb.com
Mon May 7 07:45:48 EDT 2007


Adrian Smith wrote:
> On May 7, 2:30 pm, Steven D'Aprano
> <ste... at REMOVE.THIS.cybersource.com.au> wrote:
>> On Sun, 06 May 2007 21:30:16 -0700, Adrian Smith wrote:
> 
>> It is NOT the same error. There are NO syntax errors in the script, there
>> is a runtime error. The so-called administrator is wrong: you can't use
>> Perl to test just any old CGI scripts. They have to be written in Perl.
> 
> Well, I thought that, but you know what happens to newbies who come
> out with such opinions forcefully. Maybe they have special magic perl
> which parses python.
> 
>> I see from the source code on your page that you have a line:
>>
>> <TEXTAREA NAME="essay" COLS=60 ROWS=20 WRAP=HARD></TEXTAREA>
>>
>> You have two lines in your cgi script:
>>
>> form = cgi.FieldStorage()
>> print form["essay"].value
>>
>> Having never done cgi programming, I'm not sure what the problem is, but
>> after reading help(cgi) I'll take a stab in the dark and say try this:
>>
>> print form.value
>>
>> It might also help for you to try this:
>>
>> print form.keys()
> 
> Both give me the same ISE, alas.
> 
>> Good luck with the "admins" at your hosting company.
> 
> Well, it *is* free, and there aren't that many free ones that offer
> Python. My paid-for host has sent me a message to say they're
> ruminating on my issues, though, so I live in hope.
> 
I'd go to Cornerhost. You can get a cheap account there and the support 
is friendly and knowledgable. I am no longer a customer and do not stand 
to gain by this recommendation, but they are a small business that were 
very helpful to me when I *was* a customer.

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
------------------ Asciimercial ---------------------
Get on the web: Blog, lens and tag your way to fame!!
holdenweb.blogspot.com        squidoo.com/pythonology
tagged items:         del.icio.us/steve.holden/python
All these services currently offer free registration!
-------------- Thank You for Reading ----------------




More information about the Python-list mailing list