[TOC] [Prev] [Next] [Bottom]



<@CGI>

Syntax

<@CGI [ENCODING=encoding]

Description

Returns the full path and name of the Tango CGI. On Mac OS, the path arguments separator, "$", is appended to this value.

With server plug-in/extension versions of Tango, this meta tag returns nothing.

Use this meta tag when creating embedded links to other Tango application files. Doing so ensures that the links work regardless of the Web server setup, or on which platform you are running Tango Server.


!Note: This meta tag is often used to create URLs, for example, in the HREF attribute of an anchor tag in HTML. To make sure that the meta tag returns a properly encoded value, you can use one of the following:

<@CGI ENCODING="URL">
<@URLENCODE STR="<@CGI>">


Examples

<A HREF="<@CGI>/custlist.taf">List Customers</A>

This provides a link to an application file named custlist.taf.

If running the Mac OS CGI in the Web server's root directory, the example returns /Tango.acgi$/custlist.taf after the meta tag is evaluated. On Windows NT, with the CGI in the cgi-bin directory, the example returns /cgi-bin/t3cgi.exe/custlist.taf. If you are running Tango with one of the server plug-ins, it returns
/custlist.taf.

<A HREF="<@CGI>/more/cust_add.taf">Add Customer</A>

This links to the cust_add.taf application file located in a directory named more in the root directory of the Web server.

See Also

<@APPFILE>
<@APPFILEPATH>
Encoding Attribute



[TOC] [Prev] [Next] [Bottom]



docs@pervasive.com

Copyright © 1998, Pervasive Software Inc. All rights reserved.