Re: CGI python use "under a curse"
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Mon, 07 May 2007 07:45:48 -0400
Adrian Smith wrote:
On May 7, 2:30 pm, Steven D'ApranoI'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.
<ste...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> 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.
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 ----------------
.
- References:
- CGI python use "under a curse"
- From: Adrian Smith
- Re: CGI python use "under a curse"
- From: Steven D'Aprano
- Re: CGI python use "under a curse"
- From: Adrian Smith
- CGI python use "under a curse"
- Prev by Date: Re: assisging multiple values to a element in dictionary
- Next by Date: Re: Bastion/rexec use cases?
- Previous by thread: Re: CGI python use "under a curse"
- Next by thread: Fingerprint Verification System
- Index(es):
Relevant Pages
|
|