PXE Tools

 

 

Pascal X (Development) Environment contains a set of tools to assist novice programmers.

 

wpe4.jpg (51593 bytes)

 

wpe5.jpg (34965 bytes)

wpe6.jpg (48962 bytes)

 

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;

This procedure will display the contents of all environment variables.

function CGI_EMPTY_FORM : boolean;

This function will return true if the form is empty. Otherwise, it will return false.

function CGI_DELETE(Key : string; Value : string) : boolean;

This function searches the form looking for a field name and its value that match the string parameters. If it succeeds both entries are deleted from the form and the function returns true.. Otherwise the function returns false. Only the first 1024 characters of Key and the first 65635 of Value strings are considered.

function CGI_GET_KEY(Value : string) : string;

This function searches the form looking for a field value that matches the string parameter. If it succeeds the associated field name is returned. Otherwise an empty string is returned. The first occurrence of such field is used. Only the first 65635 characters of Value is considered. The returned string may have up to 1024 characters.

function CGI_GET_VALUE(Key : string) : string;

This function searches the form looking for a field name that matches the key. If it succeeds the associated field value is returned. Otherwise an empty string is returned. The first occurrence of such field is used. Only the first 1024 characters of Key is considered. The returned string may have up to 65635 characters.

 

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);

If Final is true this procedure will output </html> otherwise it will output <html>.

procedure HTML_HEAD(Title : string; Attributes : string);

This procedure will output <head> ... </head>. If the Title string is not empty it will output <title>Title</title> following <head>. If the Attributes string is not empty it will output the Attributes string just before </head>.

procedure HTML_BODY(Final : boolean);

If Final is true this procedure will output </body> otherwise it will output <body>.

procedure HTML_FRAMESET(Attributes : string);

This procedure will output <frameset>Attributes</frameset>.

procedure HTML_CENTER(Str : string);

This procedure will output <center>Str</center>.

procedure HTML_H1(Str : string);

This procedure will output <h1>Str</h1>.

procedure HTML_H2(Str : string);

This procedure will output <h2>Str</h2>.

procedure HTML_H3(Str : string);

This procedure will output <h3>Str</h3>.

procedure HTML_H4(Str : string);

This procedure will output <h4>Str</h4>.

procedure HTML_H5(Str : string);

This procedure will output <h5>Str</h5>.

procedure HTML_H6(Str : string);

This procedure will output <h6>Str</h6>.

procedure HTML_P(Str : string);

This procedure will output <p>Str</p>.

procedure HTML_HIDDEN(Name : string; Value : string);

This procedure will output <input type=hidden name="Name" value="Value">.

 

Download

Back Home Up

#

 

Last Updated: 02 Oct 2007 04:14:05 -0000

(C) 2000-2007 Arthur Vargas Lopes