<body>
    <form action="" method="post">
      {% csrf_token %}
      <input type="radio" name="course" value="C" />C
      <br>
      <input type="radio" name="course" value="CPP" />CPP
      <br>
      <input type="radio" name="course" value="DS" />DS
      <br>
    </form>
    {{res}}
</body>
views.py
def user(request):
   if 'CPP' in request.POST:
          print("CPP")
          return HttpResponseRedirect(request.path_info)
Is there any solution to pass values to the views when the radio button is checked when submit button is not there
 
    