|
|
|
|
Pascal X (Development) Environment contains a set of tools to assist novice programmers.
CGI Resources (Alfa Release) The Pascal X compiler/interpreter, version 1.09 and up, may be also used as a CGI application. That is, the program p.exe, located within a Windows NT Web server, can be activated from a client HTML page. Environment Variables The following string variables are available to retrieve the associated environment variables data: AUTH_TYPE CONTENT_TYPE CONTENT_LENGTH DOCUMENT_ROOT GATEWAY_INTERFACE HTTP_ACCEPT HTTP_ACCEPT_LANGUAGE HTTP_COOKIE HTTP_REFERER HTTP_USER_AGENT PATH_INFO PATH_TRANSLATED QUERY_STRING REMOTE_ADDR REMOTE_GROUP REMOTE_HOST REMOTE_IDENT REMOTE_USER REQUEST_METHOD SCRIPT_NAME SERVER_ADMIN SERVER_NAME SERVER_PORT SERVER_PROTOCOL SERVER_SOFTWARE
CGI Subprograms The following subprograms are available when the compiler/interpreter is running as a CGI application otherwise their usage are ignored: procedure CGI_DISPLAY_ENV;
function CGI_EMPTY_FORM : boolean;
function CGI_DELETE(Key : string; Value : string) : boolean;
function CGI_GET_KEY(Value : string) : string;
function CGI_GET_VALUE(Key : string) : string;
HTML Resources A number of subprograms are being released to experiment with HTML code. The same effect may be achieved by using the write[ln] procedure. For example, writeln('<head><title>PXE Tools</title></head>'); is equivalent to HTML_HEAD('PXE Tools',''); The following subprograms are available: procedure HTML(Final : boolean);
procedure HTML_HEAD(Title : string; Attributes : string);
procedure HTML_BODY(Final : boolean);
procedure HTML_FRAMESET(Attributes : string);
procedure HTML_CENTER(Str : string);
procedure HTML_H1(Str : string);
procedure HTML_H2(Str : string);
procedure HTML_H3(Str : string);
procedure HTML_H4(Str : string);
procedure HTML_H5(Str : string);
procedure HTML_H6(Str : string);
procedure HTML_P(Str : string);
procedure HTML_HIDDEN(Name : string; Value : string);
#
Last Updated: 02 Oct 2007 04:14:05 -0000 (C) 2000-2007 Arthur Vargas Lopes |
|
|