Re: MultiSelect List Box in PHP

From: Date: Sun, 31 Oct 2004 21:13:37 +0000
Subject: Re: MultiSelect List Box in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-200779@lists.php.net to get a copy of this message
implode() Andy B wrote:
I need to be able to print the selected items without the "array..." thing around it. so example would be if 1 and 2 are selected it would print: 1, 2 it's supposed to be formatted for the user... -----Original Message----- From: -{ Rene Brehmer }- [mailto:metalbunny@metalbunny.net] Sent: Sunday, October 31, 2004 5:12 AM To: php-general@lists.php.net Subject: Re: [PHP] MultiSelect List Box in PHP Would be easier if you didn't send it as HTML ... bad boy you Rene At 10:00 31-10-2004, M. Sokolewicz wrote:
---------[ input.html ]---------- .... one two three ....
---------[            ]----------
---------[ input.php ]---------- <?php print_r($_POST); ?>
---------[            ]----------
---------[ output ]---------- Array (
    [select] => Array
        (
            [0] => 1
            [1] => 2
        )
    [submit] => submit
)
---------[            ]----------
Above output is with #1 and #2 selected, and #3 not selected. Easy, huh? - Tul
-- Rene Brehmer aka Metalbunny If your life was a dream, would you wake up from a nightmare, dripping of sweat, hoping it was over? Or would you wake up happy and pleased, ready to take on the day with a smile? http://metalbunny.net/ References, tools, and other useful stuff... Check out the new Metalbunny forums at http://forums.metalbunny.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#200779) next »