私の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 CODE (test.py):
#!usr/bin/python
form = web.input()
print form.firstname
print form.lastname
HTMLデータをファイルに保存するにはどうすればよいですか??