Home
About
Agents
CGIs
Mac
Macros
Misc
Stories
Suites
Websites
Outline
Frontier
Scripting

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)


This is a fat web page containing user.webserver.cgis.samples.simplestCGI. More info on fat pages here.

© copyright 1997-98 UserLand Software. This page was originally posted on 2/17/98; 6:17:47 AM and it was last built on 9/11/98; 9:22:58 AM. Webmaster: dave@userland.com.