HTML Error from Python CGI Script

Chris chouster at uclink4.berkeley.edu
Mon Jun 24 20:18:41 EDT 2002


Ok, I'm writing a CGI script and its supposed to generate a temporary
HTML document. By temporary I mean (and assume) that a unique filename
is generated whereby I can refer to that filename, write to it, save,
etc. and will not delete unless I explicity call to delete it. I use
the tempfile module from python. My problem is that the temporary HTML
document cannot be interpreted by IE when I click on a hyperlink that
points to this temp HTML document. Here is the page that is generated:

<HTML>
<!-- Created by /someCGIscript -->
<HEAD>
<TITLE>Submission Request from you</TITLE>
</HEAD>
<BODY BGCOLOR="#F0F0F0"   >
<H2>Rearray Information</H2>
<br>User: me at me.com<br>
Time at Request: Mon Jun 24 17:10:51 2002<br>
<FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded"   >
<INPUT TYPE="hidden" NAME="project" value="1">
<INPUT TYPE="hidden" NAME="emailAddress" value="me at me.com">
<INPUT TYPE="hidden" NAME="destplates" value="343">
<INPUT TYPE="hidden" NAME="cloneList" value="394023_3523_32423">
</FORM>
</BODY>
</HTML>

I copy this exact text to my own computer (versus operating over
network) and open it and it looks fine. Exactly what I need. However,
when I put a link to it on another webpage on the network, an internal
server error occurs and complains about the following:

syntax error at line 2: `newline or ;' unexpected

What does this mean??? I've generated hundreds of webpages in my day
and never have I come across something seemingly so simple yet so
elusive. Help me please!
THanks


Chris



More information about the Python-list mailing list