Django - How To Do An If Statement If Button Is Clicked October 22, 2023 Post a Comment I want the user to click a button on my website, and when it is clicked I want i = i + 1. So far I have this code that doesn't work # On html file Solution 1: Try - # On html file <form method='get' action='#'> <input type="submit" value="Next" name="Next"/> </form> # In django viewsif request.GET.get('Next') == 'Next': print('user clicked summary') CopyBecause the name of the button is 'Next' not 'Name' Baca JugaFilter The Number Of Pages Not Working DjangoDisplay Images In Select Option For Selection -django PythonHtmlunit Selenium Python Errno 111 Share You may like these posts Php If/while And Or Img Resizing Error"if" Statement Parameters Not Functioning As Intended. JavascriptPhp Fatal Error: Call To Undefined Function Test_input() In C:\wamp\www\web\new9.php On Line 11How To Use Html Id In A Ruby If Statement Condition Post a Comment for "Django - How To Do An If Statement If Button Is Clicked"
Post a Comment for "Django - How To Do An If Statement If Button Is Clicked"