abemaca Posted November 10, 2011 Share Posted November 10, 2011 hi guys , i know with link youll use the name tag to load a location on the page but i need to know how to use it in php. i have a main page with details at the top of page, half way down i have comments and then the user can add comments to them. currently if you click post a comment its ok but i want to load that comment at the top (scrolled down to location) once you click submit to post your comment as it loads the same page again. this is the views as pages loads with the comment box at bottom. this is how i want the same page to load , half where down where the comment is placed. i want it to work the same as a forum , post your message then you see your message at top of page of that thread all thought the message is actually like the 12th post in the board. Quote Link to comment https://forums.phpfreaks.com/topic/250877-location-of-a-post/ Share on other sites More sharing options...
xyph Posted November 10, 2011 Share Posted November 10, 2011 This is called a local anchor I believe. If you call the page using page.php#anchorname it will send the browser to wherever <a name="anchorname"> is located Quote Link to comment https://forums.phpfreaks.com/topic/250877-location-of-a-post/#findComment-1287095 Share on other sites More sharing options...
abemaca Posted November 10, 2011 Author Share Posted November 10, 2011 thanks. Quote Link to comment https://forums.phpfreaks.com/topic/250877-location-of-a-post/#findComment-1287109 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.