The Simplest Frontier CGI
This page contains the simplest Frontier CGI script.
It just says Hello World every time you call it.
Try it out: http://www.scripting.com/samples.simplestCGI.fcgi.
Listing
Here's what the source looks like:
on simplestCGI (adrParams) |
| local (htmltext = webServer.httpHeader ()) |
| on add (s) |
| htmltext = htmltext + s |
| add ("<html>\r") |
| add ("<head>\r") |
| add ("<title>Hello World</title>\r") |
| add ("</head>\r") |
| add ("<body>\r") |
| add ("<h2>Hello World</h2>\r") |
| add ("</body>\r") |
| add ("</html>\r") |
| return (htmltext) |
|