Pass a list of values as options to 3 dropdown menus
Peter Pearson
pkpearson at nowhere.invalid
Tue Sep 4 13:03:55 EDT 2018
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 = ( '==========', 'Ιανουάριο ...
> years = ( '=====', 2010, 2011, 2012, 2 ...
>
>
> pdata = pdata + '''
><br><h3><br><font color=orangeredsize=6> Επιλεκτική Αναζήτηση: </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="<Αναζήτηση>">
></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.
More information about the Python-list
mailing list