On Sun, Jul 21, 2002 at 11:43:25AM -0400, WANDA HANSEN wrote:
Is there a way to handle data gathered from a drop down menu that
allows multiple selections using PHP?
Yes. The way I normally do this is to use HTML that looks something
like:
select multiple='multiple' name='test[]'
option
Hello,
Is there a way to handle data gathered from a drop down menu that
allows
multiple selections using PHP?
Of course. Name your select box as an array, and include the 'multiple'
keyword.
select name='something[]' multiple
Then you'll have an array on your processing page that holds all
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 21, 2002 5:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Drop Down Box Question
Hello,
Is there a way to handle data gathered from a drop down menu that
allows
multiple selections using PHP
This is actually a small excerpt from a program I've written in the
past... hope it helps...
function show_downtime_form() {
global $conf_file;
global $filter;
$data=file($conf_file);
foreach ( $data as $line ) {
$bang=explode(':', $line);
4 matches
Mail list logo