我的 HTML 代码:
<html>
<head>
<title>INFORMATION</title>
</head>
<body>
<form action = "/cgi-bin/test.py" method = "post">
FirstName:
<input type = "text" name = "firstname" /><br>
LastName:
<input type = "text" name = "lastname" /><br>
<input type = "submit" name = "submit "value = "SUBMIT">
<input type = "reset" name = "reset" value = "RESET">
</form>
</body>
我在 cgi-bin 目录中的 PYTHON 代码(test.py):
#!usr/bin/python
form = web.input()
print form.firstname
print form.lastname
我应该怎么做才能将html数据存储在某个文件中?