I need one help . I need to get all html field value when user will click on different button in views.py file using Django and Python. I am explaining my code below.
<div class="boxwidthinnerdiv">
Nuclear Mini Plant<br /><br />
<select>
<option>Reactor 1</option>
<option>Reactor 2</option>
<option>Reactor 3</option>
</select>
<br /><br /><br /><br />
<a href="{% url 'start' %}"><button class="buttondiv" type="button">Start</button></a>
<a href="{% url 'shut' %}"><button class="buttondiv">Shut Down</button></a>
<a href="{% url 'suspend' %}"><button class="buttondiv">Suspend</button></a>
</div>
Here when user will click on start button the select field value should get in views.py file which is given below.
def start(request):
status = 1
def shut(request):
status = 0
def suspend(request):
status = 2
Here inside each action I need to get the select field selected value. Please help me.