Python CGI & Webpage with an Image
rodmc
userprogoogle-139 at yahoo.co.uk
Thu Mar 6 04:37:14 EST 2008
Hi,
Good point, some code samples is probably required. Please note that
for reasons of integration with another system I am not using a
templating system.
Anyway I have copied them below:
Python:
f = open("finish.html")
doc = f.read()
f.close()
print doc
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html;
charset=windows-1252">
<TITLE></TITLE>
</HEAD>
<BODY LANG="en-GB" DIR="LTR">
<P><IMG SRC="banner.jpg" NAME="graphics1" ALIGN=LEFT WIDTH=799
HEIGHT=137 BORDER=0><BR CLEAR=LEFT><BR><BR>
</P>
<P>Thank you for uploading your file</P>
</BODY>
</HTML>
More information about the Python-list
mailing list