Lee jundong
leejd80 at gmail.com
Sat Dec 4 10:46:56 EST 2004
Hi, I am newbie for Mod_Python.Today, i write code to handle HTML requst.But i failed. Follow code block is my python code: ---------------------------------------------- from mod_python import util def Login (req): data = util.FieldStorage(req) return "login:", data.keys() ---------------------------------------------- HTML code is following: ---------------------------------------------- <form method="POST" action="login.py/Login"> <table border="1" width="100%"> <tr> <td width="100%" colspan="2"> <p align="center">Login</p> </td> </tr> <tr> <td width="39%">User</td> <td width="61%"><input type="text" name="User" size="30"></td> </tr> <tr> <td width="39%">Password:</td> <td width="61%"><input type="password" name="Password" size="30"></td> </tr> <tr> <td width="100%" colspan="2"> <p align="center"> <input type="submit" value="Login" name="B1"></p> </td> </tr> </table> </form> ------------------------------------ The code execute result follow: --------------------------------------------- ('login:', []) The python code can't get HTML request varible from result.How to do? -- My Blog >> http://leejd.cndev.org My QQ >> 9847243
|