#!/usr/bin/python

import cgi

fields = cgi.FieldStorage()

print "Content-Type: text/html"
print

print "<html>"
print "<title>",fields["file_name"].value,"</title>"

print "<body>"

#filebuf = fields["file_name"].file.read()
#lines = filebuf.split('\n')

while line = fields["file_name"].file.read():
	print "<p><b>", line,"</b></p>"



print "</body>"
print "</html>"


@@ -51,16 +51,50 @@
 torage()
+%0Atitle = fields%5B%22file_name%22%5D.value
 %0A%0Aprint 
@@ -121,82 +121,225 @@
 html
+%5Cn%5Cn
 %22%0Aprint
-%0A%0Aprint %22%3Chtml%3E%22%0Aprint %22%3Ctitle%3E%22,fields%5B%22file_name%22%5D.value,%22%3C/title
+ %22%3C!DOCTYPE html%3E%22%0Aprint %22%3Chtml%3E%22%0A%0Aprint %22%3Chead%3E%22%0Aprint %22%3Ctitle%3E%22, title,%22%3C/title%3E%22%0Aprint %22%3Clink href=%5C%22/css/basic.css%5C%22 rel=%5C%22stylesheet%5C%22 type=%5C%22text/css%5C%22%3E%22%0Aprint %22%3Cmeta charset=%5C%22UTF-8%5C%22%3E%22%0Aprint %22%3C/head
 %3E%22%0A%0A

Update upload_file.py