RE: MultiSelect List Box in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx]
Sent: Sunday, October 31, 2004 5:12 AM
To: php-general@xxxxxxxxxxxxx
Subject: Re:  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux