Django - How To Do An If Statement If Button Is Clicked June 02, 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 JugaCounting Data Points Within Limits, And Applying Buffer To Isolated Points [data Analysis]Django Celery Implementation - Oserror : [errno 38] Function Not ImplementedImprove Django View With Methods Share You may like these postsHow To Scrape Specific Text From Specific Table ElementsHow To Create Dropdown Menu From Python List Using Flask And HtmlGetting Current Video Tag Url With SeleniumHow To Post My Html Form To Django Model And Save It? 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"