On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote:
> On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote:
>
> > Even shorter:
> >
> > $acc=implode(",", array_flip($cb));
> >
>
> Assuming, of course, that the original values are unique (oops!).
>
>
Oh wait:
$acc=implode(",", array_keys($cb));
THA
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote:
> Even shorter:
>
> $acc=implode(",", array_flip($cb));
>
Assuming, of course, that the original values are unique (oops!).
--
Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-m
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote:
> Hey!!! thank you for your answer... what you think about this solution:
>
> while(list($key, $val) = each($cb)) {
> if ($val == 1 && $key != 0) {
> $acc = $key;
> } else {
> $acc = $acc.",".$key;
> }
>
> }
>
Even shorter:
$acc=implode(",
> while(list($key, $val) = each($cb)) {
> if ($val == 1 && $key != 0) {
> $acc = $key;
> } else {
> $acc = $acc.",".$key;
> }
This looks syntactically correct.
> }
> // by the way this: $acc=.$key would be a valid command? like the c++ $a =+
> $b
I usually use (for a string):
.=
that wou
AIL PROTECTED]>
To: Romulo Roberto Pereira <[EMAIL PROTECTED]>
Cc: php-general <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 5:27 PM
Subject: Re: [PHP] srtoring user selection on the database...
Yes you can. I hate to say it, but there isn't any one answer. You
are going
/www.smackdown.com/
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote:
> Date: Thu, 18 Jan 2001 17:18:15 -0500
> From: Romulo Roberto Pereira <[EMAIL PROTECTED]>
> To: php-general <[EMAIL PROTECTED]>
> Subject: [PHP] srtoring user selection on the database...
>
> hello
hello!
I have a form and in this form I have 48 checkboxes. is there a way that my program
could remember which ones were selected?
looks like this::
...
I would lke to remember which ones the user clicked on...
Thank you!
Rom
7 matches
Mail list logo