Thanks Paul but I was not clear: the html page is separate from the python script, it calls the python script when the button is clicked.
The indentation error must be because of my cut and paste. PS: My goal is to be able to exchange data between the server and the client (browser plugin) as I have not yet found an easier way. Regards, Philippe Paul McNett wrote: > Philippe C. Martin wrote: >> PS: If my question is not clear, I am trying to "share" the form between >> the client and server. >> >> just as many sites out there allow you to modify existing data: >> 1) the server pops up a form with your data in it. >> 2) the client can modify it and submit. >> >> I know this is a _basic_ question, sorry. > > When debugging Python cgi scripts, it is helpful to run the scripts from a > command line just to make sure there aren't any compiler errors. Depending > on how the server is set up, you'll get a server error or just a blank > page if your script won't compile. When I run your script directly as I > suggest, here's what I get: > > [EMAIL PROTECTED]:~$ python test.py > File "test.py", line 23 > <html> > ^ > SyntaxError: invalid syntax > > D'oh! You needed to surround the html with quotes to make it a string, as > in: > > print """ > <html> > ... > </html> > """ > > I don't really understand your original problem, but perhaps this will > help get you rolling again. > > -- http://mail.python.org/mailman/listinfo/python-list