yeah, no name on the form fields.

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!
----------------------------------------------------------------------
----------------------------------------------------------------------


                                                                                       
                                   
                    Mark Smyth                                                         
                                   
                    <[EMAIL PROTECTED]        To:     "'[EMAIL PROTECTED]'" <[EMAIL 
PROTECTED]>     
                    ology.com>                  cc:                                    
                                   
                                                Subject:     RE: [ cf-dev ] Looping 
through form fields in MX             
                    20/06/2003 14:41                                                   
                                   
                    Please respond to                                                  
                                   
                    dev                                                                
                                   
                                                                                       
                                   
                                                                                       
                                   



and its not the speeling mistake ;)

-----Original Message-----
From: Mark Smyth
Sent: 20 June 2003 14:41
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Looping through form fields in MX


it was me being a complete muppet

the testing on the other servers were working cause I was using the forms I
had built for testing.

There was a form on the development server already where i was having
problems.  I was from a development wireframe someone else did.

the form read:

<form action="action.cfm" method="post">
<inptut type="check box" value="1"><br>
<input type="submit">
</form>

see the problem?

-----Original Message-----
From: Rich Wild [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 13:07
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] Looping through form fields in MX


did you get it to work?

I have this code running on lots of things (4.5, 5 & CFMX), there's nothing
too theoretically taxing with it - all it is is looping over a list and
conditionally adding each listitem to another list, so if its broken,
there's probably a reason rather than it being a bug.

> -----Original Message-----
> From: Mark Smyth [mailto:[EMAIL PROTECTED]
> Sent: 18 June 2003 17:50
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] Looping through form fields in MX
>
>
>
> right, this is wierd
>
> Where MX is using its own webserver (on port 8500) its not working
>
> Tested on another dev machine its working fine where MX is
> installed with
> IIS
>
> To hell with it, i'll use the structure
>
>
> -----Original Message-----
> From: Rich Wild [mailto:[EMAIL PROTECTED]
> Sent: 18 June 2003 17:34
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] Looping through form fields in MX
>
>
> absolutely, use it all the time.
>
> > -----Original Message-----
> > From: Mark Smyth [mailto:[EMAIL PROTECTED]
> > Sent: 18 June 2003 17:39
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [ cf-dev ] Looping through form fields in MX
> >
> >
> > cheers rich
> > is the loop syntax (without the mid), working for you on MX?
> >
> > -----Original Message-----
> > From: Rich Wild [mailto:[EMAIL PROTECTED]
> > Sent: 18 June 2003 17:30
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [ cf-dev ] Looping through form fields in MX
> >
> >
> >
> > The thing is though, is that code is (hopefully - haven't
> > looked it up)
> > using the mid() for a reason. In this instance if all you
> > want to do is add
> > the name of the field to a list then all you need is
> >
> > <cfset myList = listappen(myList, i)>
> >
> > > -----Original Message-----
> > > From: Mark Smyth [mailto:[EMAIL PROTECTED]
> > > Sent: 18 June 2003 17:34
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: [ cf-dev ] Looping through form fields in MX
> > >
> > >
> > >
> > > i understand it, just didn't really see the need to change it
> > >
> > > how would you change the listappend?
> > >
> > > -----Original Message-----
> > > From: Rich Wild [mailto:[EMAIL PROTECTED]
> > > Sent: 18 June 2003 17:22
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: [ cf-dev ] Looping through form fields in MX
> > >
> > >
> > > aha! Another victim to fall foul of copying and pasting!
> > >
> > > ;)
> > >
> > > p.s. my advice is to not copy any code I or others send to
> > > the list without
> > > understanding it first, or you'll get issues like this!
> > >
> > > > -----Original Message-----
> > > > From: Mark Smyth [mailto:[EMAIL PROTECTED]
> > > > Sent: 18 June 2003 17:26
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: RE: [ cf-dev ] Looping through form fields in MX
> > > >
> > > >
> > > > believe it or not i just copied and pasted that out of an
> > > > email you send to
> > > > this list ref another issue
> > > >
> > > > the middle bit might be a bit of of context here, i didn't
> > > > really look at
> > > > it, just saw the cfloop
> > > >
> > > > thought you might've recognised it, do an advanced search on
> > > > form fields and
> > > > you'll come across it :)
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Rich Wild [mailto:[EMAIL PROTECTED]
> > > > Sent: 18 June 2003 17:12
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: RE: [ cf-dev ] Looping through form fields in MX
> > > >
> > > >
> > > > I'm not quite sure what you're doing with the mid, but if you
> > > > just want to
> > > > add that field to the list then use: listappend(idList, i) as
> > > > i contains the
> > > > name of the field in the list at that iteration of the loop
> > > >
> > > > <cfset idList ="">
> > > > <cfloop list="#form.fieldnames#" index="i">
> > > >         <cfif findnocase('chkmsg', i)>
> > > >                   <cfset idList = listappend(idList, i)>
> > > >         </cfif>
> > > > </cfloop>
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Mark Smyth [mailto:[EMAIL PROTECTED]
> > > > > Sent: 18 June 2003 17:14
> > > > > To: '[EMAIL PROTECTED]'
> > > > > Subject: [ cf-dev ] Looping through form fields in MX
> > > > >
> > > > >
> > > > > the syntax below doesn't seem to be working for me in MX
> > > > >
> > > > > if its a bug, what the next easiest way to loop through
> > > form fields
> > > > > dynamically?
> > > > >
> > > > > <cfset idList ="">
> > > > > <cfloop list="#form.fieldnames#" index="i">
> > > > >            <cfif findnocase('chkmsg', i)>
> > > > >                      <cfset idList = listappend(idList,
> > mid(i, 1, 6))>
> > > > >            </cfif>
> > > > > </cfloop>
> > > > >
> > > > > thanks
> > > > > mark
> > > > >
> > > > > --
> > > > > ** 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]
>
>
> --
> ** 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]

--
** 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]


--
** 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]






-- 
** 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]

Reply via email to