CGI.SCRIPT_NAME?
Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Ian Westbrook" To: <[EMAIL PROTECTED]> <ian@futuredr cc: eam.net> Subject: Re: [ cf-dev ] for loops... 11/29/02 01:13 PM Please respond to dev ooh, that looks good - I'll try that next time. ta. I'd forgotten what a helpful bunch you CF lot are. They're much pricklier on the PHP list ;-) while we're on the subject, one of the most massively useful things I've found in PHP (apart from the built-in locking and the lack of a need to scope variables) is $PHP_SELF, which tells you what page you're on and lets you do things like if ($PHP_SELF == '/index.php') { do something }else if ($PHP_SELF == '/resources.php') { do something else } so one can have a complex navbar and just include it on every page, then do different stuff depending on where you are (see www.realfoodonline.com for an example, although it's still under massive construction). Is there a CF equivalent? Ian W ----- Original Message ----- From: "Stephen Moretti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 29, 2002 12:35 PM Subject: Re: [ cf-dev ] for loops... > Ian, > > <cfset records = #ListLen(form.story_id)#> > for ($i=1;$i<#records#;$i++) { > do some action > } > > becomes > > <cfscript> > records = ListLen(form.story_id); > for (i=1;i<records;i++) { > do some action > } > </cfscript> > > in CF... > > Much neater and tidier ;o) > > > Regards > > Stephen > > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
