Django - How To Do An If Statement If Button Is Clicked April 20, 2024 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 JugaFill Django Form Using Bootstrap SelectboxHow Do I Change The Look Of My Model Fields On The Front-end Side?Import An Html File Into An Other Html File Share You may like these postsRegister Js For A Defined Page In Script-calls.phpHow To Remove Text Overlapping In Table?Split Space Of A Fixed Size Container Equally. A Case For Flexbox?HTML Newline Using FromCharCode Is Not Working 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"