Django - How To Do An If Statement If Button Is Clicked September 30, 2022 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 views if request.GET.get('Next') == 'Next': print('user clicked summary') Copy Because the name of the button is 'Next' not 'Name' Baca JugaIframe Content Loading ProcessHow Do I Make New Messages Appear On Left/right Depending On Who Sent Them? (no Float)Difficulty In Designing Business Card Using Css Share You may like these postsPhp Fatal Error: Call To Undefined Function Test_input() In C:\wamp\www\web\new9.php On Line 11"if" Statement Parameters Not Functioning As Intended. JavascriptHow Do I Make A New Row In A Table Which Retrieves Database Fields From An Array?Php If/while And Or Img Resizing Error 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"