[Loop Parameters]Any Text or HTML[/Loop]

Loops through the enclosing text the specified number of times

The Loop context requires two parameters: Start and End. Looping will occur between (and including) the Start and End value; advancing by 1 each time. You may optionally tell the loop context to advance by a specified amount (other than 1) by using the Advance parameter.

Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):

[loop start=1&end=[numAdd]&advance=1]
[append db=some.db]...[/append]Record [index] added.<br>

Try It!

Using the Loop context you can easily create a form that adds an arbitrary number of records to a database. The form that links to this page (via a Showpage command for example) can specify the data to add for each record and how many records to add ([numAdd]). If you chose to add three records, the results would look like this: 

Record 1 added.
Record 2 added.
Record 3 added.

The following parameters can be used to modify the [Loop] context:
 Parameter  Description


The starting index value to begin looping. This value is required and may be positive or negative.


The ending index value when looping. This value is required and may be positive or negative.


(Optional) The amount to advance by when looping. This parameter is optional and may be positive or negative, the default value is 1. For example, [loop start=1&end=7&advance=2][index][/loop] would loop 4 times using [index] values 1,3,5,7.

The following tags are available inside a [Loop] context:
Tag Description


The current index number between or including Start and End.