[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Looping


On Thu, 2006-10-12 at 17:18 +0200, Stefan Hornburg wrote:
> 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
> 
> Basically:
> 
> [loop ranges="1" list="1..[cgi user_number]"]
> Number is [loop-code]<br>
> [/loop]
> 
> Please make sure that [cgi user_number] is limited, otherwise
> this code can be cause waste of your server resources.
> 
> Bye
> 	Racke

Also always filter that cgi!! (entities) or people can inject code...
Rick


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.