<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre>Thank you,

Yes I have other scripts working fine.

The OS is WXP and the server is the python's CGIHTTPserver (for an intranet use only)


---------
Hi Paulino,

&gt;<i> This is a peace of a CGI script i have.
</i>&gt;<i> 
</i>&gt;<i> 1 import cgi
</i>&gt;<i> 2 form=cgi.FieldStorage()
</i>&gt;<i> 3 try :
</i>&gt;<i> 4     ano=form["ano"].value
</i>&gt;<i> 5     conta=form["conta"].value
</i>&gt;<i> 6 except KeyError :
</i>&gt;<i> 7     print '&lt;html&gt;&lt;br&gt;&lt;br&gt;&lt;body&gt;&lt;p&gt;Please enter values in the
</i>&gt;<i> fields&lt;/p&gt;&lt;/body&gt;&lt;/html&gt; '
</i>&gt;<i> 8     sys.exit(0)
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> When the excption occurs, no message is shown on the browser.
</i>
Can you tell us a bit more about the set up?
What OS? What web server? 

Can you get any other python CGI scripts running correctly?

&gt;<i> If I run the script with IDLE, the message is printed and then the
</i>&gt;<i> script exits.
</i>
The IDE environment is very different to a web server environment.

You should only treat IDLE as a first approximation when 
developing Web scripts. You can use the OS prompt for a slightly 
better approximation provided you set some environment variables 
first, but ultimately you need to test on the web server you will 
be using.

Alan G.</pre>
</body>
</html>