Use Anchor After Post Form Submission May 30, 2024 Post a Comment I need to let the page loads at specific label within a page after user clicks the button Post. Note: i'm using PHP Form Code Sample: Solution 1: Simply include the fragment in your form's action attribute, eg<formmethod="post"action="po.php?id=44#here">CopyAlso, using ID attributes as fragment locations is much nicer. Lose the empty anchor and change your paragraph to... <p id="here">Total number of Posts 55</p> CopySolution 2: Try this:Baca JugaBrowser Ignoring Header Refresh From Ajax ResponseExport And Download My Php Table Data To CsvIos6 - How To Clear Cache Of Homescreen/standalone Web App?<formaction="po.php?id=44#here"method="POST"><inputname="btn_send"type="submit"value="Post" /></form>CopyAnd put this on the target page:<aid="here"></a><p>Total Number of Posts 55</p>CopySolution 3: header("Location: url#fragment"); Copy Share You may like these postsUnable To Get Full Path Of File Dropped In Browser Due To Security Reasons. What To Do?Detecting Shaking In Html5 MobileFtp Look A Like Application In Java/htmlPreventing Additional Touches In Webapp Post a Comment for "Use Anchor After Post Form Submission"
Post a Comment for "Use Anchor After Post Form Submission"