[ic] Looping

Stefan Hornburg racke at linuxia.de
Thu Oct 12 11:18:11 EDT 2006

graham hadgraft wrote:
> I want to loop thorgh a piece of code a set number of times as
> specified from a cgi variable.  reading the documentation i cannot
> work out how to do this.
> I have a form on the previous page that a user specifies an integer.
> On the next page i want to loop though a piece of code n times where n
> is the integer set on the previous page


[loop ranges="1" list="1..[cgi user_number]"]
Number is [loop-code]<br>

Please make sure that [cgi user_number] is limited, otherwise
this code can be cause waste of your server resources.


LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team

More information about the interchange-users mailing list