I tried your suggestion, as you can see from the script below, but it
still does not work, I get the
word 'array' where I should get the selected options.
--------------------------------------------------------------------------------------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Simrad USA Brochures Request Page</title>
</head>
<body>
<form method = post action = 'form_combos.php'>
<?
$name;
$value;
while (list($name, $value) = each($HTTP_POST_VARS))
  {
   echo "<input type=\"hidden\" value=\"$value\" name=\"$name\">\n";
  }
?>
 Please choose the brochures you are interested in receiving.
 <select name = "listbox1[]" multiple="multiple">
 <option selected value = ''>Select ...</option>
 <option>AP11</option>
 <option>AP12/AP14</option>
 <option>AP20 Series</option>
 <option>AP35</option>
 <option>AP45</option>
 <option>AP9MK3</option>
 <option>Tiller/Wheel Pilots</option>
 <option>WP5000</option>
 </select>
 <br />
 <br />
 <input type="checkbox" name="AP11[]">AP11<br />
 <input type="checkbox" name="AP12[]">AP12/14<br />
 <input type="checkbox" name="AP20[]">AP20 Series<br />
 <input type="checkbox" name="AP35[]">AP35<br />
  <input type="checkbox" name="AP45[]">AP45<br />
  <input type="checkbox" name="AP9[]">AP9MK3<br />
  <input type="checkbox" name="TP[]">Tiller/Wheelpilots<br />
  <input type="checkbox" name="WP[]">WP5000<br />
 <br /><br />
 <input type = submit>
 </form>
</body>
</html>
--------------------------------------------------------------------------------------------------------------------------------

Chip Wiegand
Computer Services
[EMAIL PROTECTED]
Simrad, Inc
Lynnwood, WA
425-712-1138

"There is no reason anyone would want a computer in their home."
 --Ken Olson, president, chairman and founder of Digital Equipment
Corp., 1977
          (-- Then why do I have nine? Somebody help me!)


Please respond to [EMAIL PROTECTED]
To: Chip Wiegand
cc:

Subject: Re: [PHP] Why doesn't this work? Please trouble-shoot my
script.




On Monday, February 5, 2001, at 10:59 AM, [EMAIL PROTECTED] wrote:

> Maybe someone can take a look at the script below and tell how to make
the
> bottom part work
> the same way the top part works.

put square brackets immediately after the name element of your select
and checkbox tags. i.e.:

<select name="mySelect[]" multiple="multiple">
<checkbox name="myBox[]">



:: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
**************************************************************************

"Crippled but free, blind all the time, i was learning to see"

- J. Garcia / R. Hunter
**************************************************************************


The  views expressed herein are not necessarily those of my employer,
but
they let me have them anyway.






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to