html - Problems with form and POST -


i facing problems form, wrote app in python3.1 , when make or post via ajax works pefectly when i' ve try same thing form-way environ['wsgi.input'] give me this:

-----------------------------4974611941277794205934495116--\r 

in first time think because file try upload after eliminate file element , give me same thing means let code of form:

<iframe id="hidden-frm" name="hidden-frm" style="display: none;"> </iframe> <form enctype="multipart/form-data" action="gate.py?bt=upload" method="post" name="input" target="hidden-frm">         <input id="testtxt" type="text"/>     <input type="submit" value="presiona aqui!"/> </form> 

thanks in advance.

that encoding result of enctype="multipart/form-data, when suspect expecting default encoding of application/x-www-form-urlencoded (ie. key=value&key2=value2).

if not need file input (which requires multipart encoding) remove enctype form tag, otherwise need parse multipart input. stdlib cgi.fieldstorage 1 solution python 2.x, not know status of particular class python 3.x (it used broken, iirc).


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -