On 8/4/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Don't you think it would be easier to just have a multi select or a checkbox
> for all the users (all named the same)... select the ones you want and
> submit. The form field would have a list of selected users. Then you just
> run an update
On 8/4/06, Mingo Hagen <[EMAIL PROTECTED]> wrote:
> I would do that a little different. You coul repeat the checkboxes like so:
>
>
>
>
>
> On the other side of the form action you would receive a list of id's in
> the form.isBannedUserID, like this: "1,2,3" for all checked inputs.
> Which you c
ject: Re: Form parameters as array
I know that :)
What I needed is a simple way to output and process a number of very
similar fields. Let's say, you want to ban 10 users from a forum at
once. After you've found these users, you could output this:
etc.
After the form i
-Original Message-
From: Dmitrii Dimandt [mailto:[EMAIL PROTECTED]
Sent: Friday, August 04, 2006 9:03 AM
To: CF-Talk
Subject: Re: Form parameters as array
I know that :)
What I needed is a simple way to output and process a number of very
similar fields. Let's say, you want to ban 10
I would do that a little different. You coul repeat the checkboxes like so:
On the other side of the form action you would receive a list of id's in
the form.isBannedUserID, like this: "1,2,3" for all checked inputs.
Which you could then directly use in an UPDATE sql statement. (WHERE
userI
I know that :)
What I needed is a simple way to output and process a number of very
similar fields. Let's say, you want to ban 10 users from a forum at
once. After you've found these users, you could output this:
etc.
After the form is submitted you could do this in PHP:
w
FORM variables are a struct in CF. You can access them like this:
#CurrentFormField# is: #FORM[CurrentFormField]#
You can see how from there you can do processing based on the name of
the Form field etc. You can also use all of the struct functions on
the FORM scope like StructFindKey() etc.
Coming from PHP I sorely miss the following feature:
When submitted, form values would be accessible through an array. This
was immensely helpful in cases when multiple similar records (a list
from a database, for instance) needed to be edited simultaneously.
However, CF arra
8 matches
Mail list logo