MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: More than one value in a <select> field



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

At 02:22 PM 6/4/99 , trese wrote:
>******    message to minivend-users from trese
<digital@arcane.specialty-books.com>     ******
>
>List :
>
>I'm not sure if this is an HTML question for a minivend question.  Is it
>possible to set more than one variable with a <select> tag inside a form?  I
>was thinking having a [selected variable_to_set value_for_it_to_be_set_to]
>inside of the <option> tag within a <select>, but I can't seem to get it to
>work.  Is this possible, or am I going about it all wrong?  

	Hmm... a pulldown selecting more than one item?  They would all have to be
the same variable... but you can do this:

<SELECT SIZE=7 NAME="variable_to_set" MULTIPLE>
<OPTION VALUE="one">The First Thing
<OPTION VALUE="two">The Second Thing
<OPTION VALUE="dunno">I have no idea
</SELECT>

	The user would, I believe, have to hold CNTRL to select multiples.

	In a CGI context this would return a comma seperated list of items picked
for variable_to_set (example :  one,dunno)   So you might have to learn
some PERL to split the values on the comma.  The same is true for
checkboxes...  but, then again, MV might have handling for this.

>
> --
>========================================
>Cory Trese 
>email : digital@specialty-books.com
>phone : (740) 594 - 2274, ext 223
>phax : (740) 593 - 3045
>========================================
>Mail Sent from
>
>Specialty Books,
>Athens Ohio, 45701
>www.specialty-books.com
>
>RedHat Linux, Hedwig
>P][  /   2.3.5
>========================================


Ryan Hertz                                              tel  520-645-3812
Webmaster                                               tel  800-645-BAIT
Advertising Director                                    fax  520-645-2588
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: