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
Post a Comment