9 Examples

Contents of this section

A simple but complete CGI-capable FlagShip program follows:

#include "webkit.fh"

FUNCTION fswkmain (aCGIData)
LOCAL_INT i
BEGIN HTML OUTPUT "Forms input bounceback"
WRITE HTML OUTPUT "Here are the contents of your CGI form:"
FOR i := 1 UPTO LEN (aCGIData)
        WRITE HTML OUTPUT "Field: ", aCGIData[i,1], " Value: ", aCGIData[i,2]
NEXT
END HTML OUTPUT
RETURN NIL

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter