Action Tags

System Variables


_action

Action Tags Script Name

Type: output

Scope: global

Description: Variable _action contains the path and file name of the action tags Perl script. It is useful in case the name of the action.pl script is changed.

Usage: {% _action }

Example:
<form action = "{% _action}" method = "post">

Result:
<form action = "/cgi-bin/action.pl" method = "post">


_append

Append Block To File

Type: input

Scope: block

Description: Assigning the _append variable to the name of a file specified by <string> appends the processed block on to the end of the file. <string> can be a variable name which contains the filename or a string specifying a filename.

Usage: {% _append = <string> }

Example:
{% _append = 'test.txt'}

Result:
The results of the current block are appended to file text.txt.


_contentType

Content Type HTTP Header

Type: input

Scope: global

Description: Assigning the _contentType variable to a string re-specifies the "Content-type:" HTTP header returned to the browser. The default is _contentType='text/html', which produces the HTTP header "Content-type: text/html".

Usage: {% _contentType = <string> }

Example:
{% _contentType = 'text/plain' }

Result:
The browser will display the plain text. The browser it will treat the returned page as a plain text document as opposed to an HTML document.

Example:
{% _contentType = 'image/gif' }

Result:
The browser will display a GIF file image. The browser it will treat the returned page as an image as opposed to a text HTML document.


_debug

Debug Display

Type: input

Scope: global

Description: Assigning _debug to an integer value turns on the debug feature. The line-by-line parsing of the template file (specified by _template) will be displayed. _debug=123 is the most verbose and everything is executed (except emails are not transmitted). _debug=1 only parses the file.

Usage: {% _debug = <integer> }

Example:

Result:


_email

Email Block

Type: input

Scope: block

Description: Email the block. <string> must equal '1' or the email address for emails that bounce.

Usage: {% _email = <string> }

Example:
{% (}{% _email = 'bounce@guide.net' }
To: Joe Smith <joe@guide.net>
From: Rich Halverson <rich@guide.net>
Subject: Hello

Joe,

How are you?

Rich
{% )}

Result:
The following email is sent.

To: Joe Smith <joe@guide.net>
From: Rich Halverson <rich@guide.net>
Subject: Hello

Joe,

How are you?

Rich


If it bounces, the email is sent to rich@guide.net.


_encode

Encode Block

Type: input

Scope: block

Description: Encode Quoted Printable

Usage: {% _encode = <string> }

Example:

Result:


_erase

Erase Block

Type: input

Scope: block

Description:

Usage: {% _erase = <integer> }

Example:

Result:


_exit

Exit Block

Type: input

Scope: block

Description:

Usage: {% _exit = <integer> }

Example:

Result:


_file

Write Block to File

Type: input

Scope: block

Description: Directories will be created if they don't exist. Prefixing the filename with a '|' writes to the htdocs side.

Usage: {% _file = <string> }

Example:

Result:


_lineLimit

Set Line Limit

Type: input

Scope: global

Description:

Usage: {% _lineLimit = <integer> }

Example:

Result:


_location

Set Location HTTP Header

Type: input

Scope: global

Description:

Usage: {% _location = <string> }

Example:

Result:


_loopLimit

Set Loop Limit

Type: input

Scope: global

Description:

Usage: {% _loopLimit = <integer> }

Example:

Result:


_mailServer

Set Mail Server

Type: input

Scope: global

Description:

Usage: {% _mailServer = <string> }

Example:

Result:


_noWarnings

No Warnings

Type: input

Scope: global

Description:

Usage: {% _noWarnings = <integer> }

Example:

Result:


_nullName

Null Name

Type: output

Scope: global

Description:

Usage: {% _nullName }

Example:

Result:


_numRecs

Number of Records

Type: output

Scope: global

Description:

Usage: {% _numRecs }

Example:

Result:


_path

Path

Type: input/output

Scope: global

Description:

Usage: <input type="hidden" name="_path" value="<string>">

Usage: {% _path }

Example:

Result:


_periods

Remove Periods

Type: input

Scope: block

Description:

Usage: {% _periods = <integer> }

Example:

Result:


_pw

Password

Type: input

Scope: global

Description:

Usage: {% _pw = <string> }

Example:

Result:


_replaceTags

Replace Tags

Type: input

Scope: global

Description: Replace the remaining variable output tags with their current values

Usage: {% _replaceTags = <integer> }

Example:

Result:


_replaceValues

Replace Variables

Type: input

Scope: global

Description: Replace tags in the form input variables

Usage: {% _replaceValues = <integer> }

Example:

Result:


_resources

Resources

Type: output

Scope: global

Description: Display system resources used for the execution. The resources are displayed at the very bottom when _debug has a non-zero value

Usage: {% _resources }

Example:

Result:


_rfctime

RFC Time

Type: output

Scope: global

Description:

Usage: {% _rfctime }

Example:

Result:


_sendmail

Set Sendmail

Type: input

Scope: global

Description:

Usage: {% _sendmail = <string> }

Example:

Result:


_spaces

Remove Spaces

Type: input

Scope: block

Description:

Usage: {% _spaces = <integer> }

Example:

Result:


_sql

SQL DBI Drivers

Type: output

Scope: global

Description:

Usage: {% _sql }

Example:

Result:


_sqlDatabase

Set SQL Database

Type: input

Scope: global

Description:

Usage: {% _sqlDatabase = <string> }

Example:

Result:


_sqlPassword

Set SQL Password

Type: input

Scope: global

Description:

Usage: {% _sqlPassword = <string> }

Example:

Result:


_sqlUser

Set SQL User

Type: input

Scope: global

Description:

Usage: {% _sqlUser = <string> }

Example:

Result:


_template

Template

Type: input/output

Scope: global

Description:

Usage: <input type="hidden" name="_template" value="<string>">

Usage: {% _template }

Example:

Result:


_terminate

Terminate

Type: input

Scope: block

Description:

Usage: {% _terminate = <integer> }

Example:

Result:


_time

Unix Time

Type: output

Scope: global

Description:

Usage: {% _time }

Example:

Result:


_numFields

Number of Fields (Columns)

Type: output

Scope: global

Description:

Usage: {% _numFields }

Example:

Result:


 

 

| Home |


July 18, 2003

System resources to generate this page:
1: READ FILE A: /home/action/public_html/_global.shtml (0s)
19: READ FILE A: /home/action/adocs/docs/variables.shtml (0s)
6: READ FILE FAILED: /home/action/public_html/docs/variables.txt (0s)
69: READ FILE A: /home/action/adocs/docs/inc_header.html (0s)
75: SQL SELECT (VAR): DBI:mysql:action_database:localhost (0s)
89: READ FILE A: /home/action/adocs/docs/inc_trailer.html (0s)