Suppose I have created a form
<form action=" " method="POST">
<input type="text" name="xyz">
<input type="text" name="abc">
<button type="submit" >submit</button>
</form>
Using this I can access the values with the name "xyz" and "abc"
if request.method == "POST":
val1 = request.form['abc']
val2 = request.form['xyz']
But I also want to access a javascript variable using the same form.
Since javascript variable has no identifier as like <input> has 'name', So is there any way to do so?
type="hidden") form field with the variable's value.