Re: How to implement a dropdownlist in CherryPy where selected item is returned as argument appended to current URL?
Tim Roberts <[email protected]> Mon, 13 May 2019 21:44:47 -0700
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
On May 13, 2019, at 7:33 PM, Jibun no Kage <[email protected]> wrote: >=20 > How to implement a dropdownlist in CherryPy where selected item is return= ed as argument appended to current URL? This is an HTML question, not a Python question. > For example, say I have a form select: >=20 > 1-Test > 2-Debug > 3-Run > 4-Report >=20 > Current URL is /number. >=20 > And when I select 4, URL via POST (or GET?) is now /number?select=3D4-Rep= ort, or something to the same effect? <form method=3Dget action=3D"/number> <select name=3D'select'> <option value=3D1>1. Test</option> <option value=3D2>2. Debug</option> <option value=3D3>3. Run</option> <option value=3D4>4. Report</option> </select> </form> That's all it takes. =E2=80=94=20 Tim Roberts, [email protected] Providenza & Boekelheide, Inc. --=20 You received this message because you are subscribed to the Google Groups "= cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. To view this discussion on the web visit https://groups.google.com/d/msgid/= cherrypy-users/9490D9A3-10AC-43B2-8CCB-94D82EB31B5F%40probo.com. For more options, visit https://groups.google.com/d/optout.