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.
-- https://mail.python.org/mailman/listinfo/python-list