Use Anchor After Post Form Submission December 24, 2023 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 JugaIs An Editable Select Box The Right Way?R: Error In As.vector(x, "character"): Cannot Coerce Type 'externalptr' To Vector Of Type 'character'Can't Connect To Mysql Server On 'ipaddress' (110)<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 postsAdd Dropdown Box In Google SiteUncaught Failed To Get Parent Origin From Url HashHow To Create, Manage, Associate A Session In Rest Jersey Web ApplicationHow To Read/modify A Local File Of Html5 Local Storage From Python? Post a Comment for "Use Anchor After Post Form Submission"
Post a Comment for "Use Anchor After Post Form Submission"