Re: Python with Apache

2013-04-15 Thread MRAB
On 16/04/2013 03:02, Renato Barbosa Pim Pereira wrote: I am trying to execute cgi101.py: #!/usr/bin/python import cgi form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')# hdr plus blank line print('Reply Page')# html reply page if not

Python with Apache

2013-04-15 Thread Renato Barbosa Pim Pereira
I am trying to execute cgi101.py: #!/usr/bin/python import cgi form = cgi.FieldStorage() # parse form data print('Content-type: text/html\n')# hdr plus blank line print('Reply Page')# html reply page if not 'user' in form: print('Who are you?') else: print