blob: fb55a731a58c8ae01f4d468a52e25e66acdd9f76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
# Test/show CGI module
import strtabs, cgi
var myData = readData()
validateData(myData, "name", "password")
writeContentType()
write(stdout, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n")
write(stdout, "<html><head><title>Test</title></head><body>\n")
writeLine(stdout, "name: " & myData["name"])
writeLine(stdout, "password: " & myData["password"])
writeLine(stdout, "</body></html>")
|