PDA

View Full Version : HTTP method 'POST' problems with mod_python


lrhaugen
June 12th, 2007, 06:39 AM
Hi,

Have anyone experienced problems when using POST method to mod_python scripts?

from mod_python import apache
from mod_python import util

def index(req):

form = util.FieldStorage(req)
fname = form.getfirst("firstname","None")

'fname' will output "None" when the request is POST, but will output a value when the request is GET. I have seen the questions in some other forums, but no answers.

Thanks!