summaryrefslogtreecommitdiff
path: root/examples/helloworld.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'examples/helloworld.cgi')
-rwxr-xr-xexamples/helloworld.cgi24
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/helloworld.cgi b/examples/helloworld.cgi
deleted file mode 100755
index bcc15a5..0000000
--- a/examples/helloworld.cgi
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env python
-
-import cgi
-
-form = cgi.FieldStorage()
-import os
-
-print 'Content-type: text/html\n'
-
-if form.getvalue('name'):
- print '<html><head><title>Hello!</title></head>'
- print '<body>'
- print '<h1>Hello %s!</h1>' % form['name'].value
-else:
- print '<html><head><title>Who is there?</title></head>'
- print '<body>'
- print '<h1>Who is there?</h1>'
-
-print '<form action="%s" method="POST">' % os.environ['SCRIPT_NAME']
-print 'What is your name?<br>'
-print '<input type="text" name="name" value="%s"><br>' \
- % cgi.escape(form.getvalue('name', ''), 1)
-print '<input type="submit" value="That is my name"></form>'
-print '</body></html>'