Use Anchor After Post Form Submission December 10, 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 JugaUndefined Variable, But Variable Is Defined/declaredPhp + Jquery Change Value Of Textbox According To Two DropdownCapture Content Inside Html Tags With Regex<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 postsRetrieving An Array Of Images On Html Page Using PhpAlign Decimal Data In Table Column By Decimal Point, Html5, Css3How To Display Multiples Images From MysqlHow Do I Import The Extracted Json Data To Database Post a Comment for "Use Anchor After Post Form Submission"
Post a Comment for "Use Anchor After Post Form Submission"