summaryrefslogtreecommitdiff
path: root/examples/helloworld.cgi
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-08-22 18:22:27 +0000
committerianb <devnull@localhost>2005-08-22 18:22:27 +0000
commit27f2c911e823216a8db5873a53b1da10c0a4c4d1 (patch)
tree1ed476b090fdda9834d088b38c54c27687e8e23b /examples/helloworld.cgi
parente17ed7b172e6b8e914c28cd3dfec53fa7b452eb7 (diff)
downloadpaste-27f2c911e823216a8db5873a53b1da10c0a4c4d1.tar.gz
Examples will be kept in a separate location in the repository in the future; build-pkg is deprecated also
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>'