Use Anchor After POST Form Submission October 11, 2022 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 <form method="post" action="po.php?id=44#here"> Copy Also, 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> Copy Solution 2: Try this:Baca JugaTogglebutton For Google HtmlserviceHow To Create, Manage, Associate A Session In Rest Jersey Web ApplicationUnable To Get Full Path Of File Dropped In Browser Due To Security Reasons. What To Do? <form action="po.php?id=44#here" method="POST"> <input name="btn_send" type="submit" value="Post" /> </form> Copy And put this on the target page: <a id="here"></a> <p>Total Number of Posts 55</p> Copy Solution 3: header("Location: url#fragment"); Copy Share You may like these postsHow To Make A Ussd Call On A Iphone From A Button In A Webpage?Disable Ios Overscroll But Allow Body ScrollingAdd Dropdown Box In Google SiteGoogle App Script And Javascript: Accessing A Form Elements Inside Div Tags Post a Comment for "Use Anchor After POST Form Submission"
Post a Comment for "Use Anchor After POST Form Submission"