It doesn't make sense to me, because the code is very simple and "FieldStorage" exist in documentation.
#!/usr/bin/env python
print 'Content-type: text/html'
print
import cgi
def Main():
form = cgi.FieldStorage()
print '<html>'
print '<body>'
print 'ola'
print '</body>'
print '</html>'
if __name__ == '__main__':
Main()
Do you have a local file called cgi.py
by any chance? That's being imported, instead of the standard library module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With