For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > April 2005 > multiple selections from pull-down









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author multiple selections from pull-down
bob engler

2005-04-27, 3:56 pm

I am doing an online quote application using php and mysql
for lookups. In one of the pulldown fields, the customer wants
the user to be able to make more than 1 selection and we will
use each selection with the other field inputs to analyze each
computed quote. I have been able to keep all inputs on a single
screen which is one of the criteria. Is there a way to do this
without a scrollbar just using the pulldown?

Thanks....





Oli Filth

2005-04-27, 3:56 pm

bob engler wrote:
> I am doing an online quote application using php and mysql
> for lookups. In one of the pulldown fields, the customer wants
> the user to be able to make more than 1 selection


Using the multiple attribute on a <SELECT> element should allow this.
See http://www.w3.org/TR/html4/interact...ml#edef-SELECT.

> use each selection with the other field inputs to analyze each
> computed quote. I have been able to keep all inputs on a single
> screen which is one of the criteria. Is there a way to do this
> without a scrollbar just using the pulldown?


I'm guessing you mean that you want the pulldown box to be big enough to
show all the items at the same time? The size attribute may do what you
want, but I haven't tried it.

--
Oli
bob engler

2005-04-27, 8:56 pm

I want the size of the box to be just the 1 line with the choices
being displayed below it like it does now with after the selection
is made, the box goes back to 1 line.

Thanks...


"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:FFQbe.2311$_s1.1873@newsfe6-gui.ntli.net...
> bob engler wrote:
>
> Using the multiple attribute on a <SELECT> element should allow this.
> See http://www.w3.org/TR/html4/interact...ml#edef-SELECT.
>
>
> I'm guessing you mean that you want the pulldown box to be big enough to
> show all the items at the same time? The size attribute may do what you
> want, but I haven't tried it.
>
> --
> Oli



Oli Filth

2005-04-27, 8:56 pm

bob engler wrote:
> I want the size of the box to be just the 1 line with the choices
> being displayed below it like it does now with after the selection
> is made, the box goes back to 1 line.
>


Well, what's wrong with a normal <SELECT> element?


--
Oli
Kimmo Laine

2005-04-27, 8:56 pm

"bob engler" <engler@0sand1s-software.com> kirjoitti
viestissä:wyTbe.10006$f6.5307@fe04.lga...
>I want the size of the box to be just the 1 line with the choices
> being displayed below it like it does now with after the selection
> is made, the box goes back to 1 line.
>
> Thanks...



Sadly, if you want multiple selections, one line dropdown is not an option.
It's single select with dropdown or multiple select with multiple rows, and
those are the only two choises you have. It's defined in HTML 4.01 like
that.

--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears

eternal.erectionN0@5P4Mgmail.com


bob engler

2005-04-27, 8:56 pm

Thanks for the feedback...


"Kimmo Laine" <eternal.erectionN0.5P@Mgmail.com> wrote in message
news:d4p3dn$s9c$1@phys-news1.kolumbus.fi...
> "bob engler" <engler@0sand1s-software.com> kirjoitti
> viestissä:wyTbe.10006$f6.5307@fe04.lga...
>
>
> Sadly, if you want multiple selections, one line dropdown is not an

option.
> It's single select with dropdown or multiple select with multiple rows,

and
> those are the only two choises you have. It's defined in HTML 4.01 like
> that.
>
> --
> "I am pro death penalty. That way people learn
> their lesson for the next time." -- Britney Spears
>
> eternal.erectionN0@5P4Mgmail.com
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com