sending data with html form correct url code example
Example: how to send the data through url in html without using the form
<!DOCTYPE html>
<html>
<body>
<form id="myform" method="post" action="/">
{% csrf_token %}
<input type="hidden" name="flag" value="2" />
<a href="#" onclick="document.forms[0].submit();return false;">Let's go!</a>
</form>
</body>
</html>