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

Pass a list of values as options to 3 dropdown menus


On Sun, 2 Sep 2018 13:40:18 -0700 (PDT), Nick Berg wrote:
> how can i be able to store a list of values to drop-down menu and then
> grab the value that the user selects?
>
> **************************************************
> name = month = year = ''
>
> # populate names, months, years
> names.add( '====================' )
> months = ( '==========', '???????????????1?? ...
> years  = ( '=====', 2010, 2011, 2012, 2 ...
>
>
> pdata = pdata + '''
><br><h3><br><font color=orangeredsize=6> ??? ?1?????????1???R
?????????R????????: </font><br>
><form method="POST" action="%s">
>     <select name="name">
>         <option value="%s"> %s </option>
>     </select>
>
>     <select name="month">
>         <option value="%s"> %s </option>
>     </select>
>
>     <select name="year">
>         <option value="%s"> %s </option>
>     </select>
>     <br><input type="image" src="/static/img/submit.gif" name="seek"
value="<?????????R????????>">
></form> <br><br>
> ''' % ( url_for( 'seek', name=name, month=month, year=year ), name, name,
month, month, year, year )
> **************************************************

I can't tell whether this is an HTML question or a Python question. If you can
reduce it to a Python question, perhaps I can help.

--
To email me, substitute nowhere->runbox, invalid->com.