Drop-down box select-> option in view of how the parameters passed to the function

example:

<SELECT name = "the p_id" ID = ""> 
{%}% for P in Permissions
<Option value = "{} {} p.p_id"> p.p_name {{}} </ Option>
{%} endfor%
</ select>

how to obtain this view dropdown box function value:
in fact, may be obtained by the function name attribute in view
dropdown box is generally in the form
request.form.get ( 'p_id')
but here for the fact that, value of the value of your choice, here is p.p_id
value instead of option tags

Guess you like

Origin www.cnblogs.com/Jokerguigui/p/11576889.html