I have 2 forms form1 and form2.
<form method="post" >
<input type="text" value="text" name="txt" id="txt" />
<input type="submit" value="submit" name="submit"/>
</form>
<form method="get" id='myfo'>
<input type="text" value="text" name="txt1" id="txt1" />
<input type="submit" value="submit" name="submit"/>
</form>
in my view.py page,
if request.GET:
// Here i can get the vaule of txt1 from form 2
data=request.GET.get('txt1')
#do some operations here.
I if enter some values in txt - form1 . I wont submit the form 1. While submitting the form2 I want the form1 txt value in view page.
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire