jug Posted January 11, 2007 Share Posted January 11, 2007 HiI have a long php page containing forms which all carry out functions on my mysql database. When I submit a form, I want the page to refresh back in the same place, rather than back to the top.Does anyone know how I can do this?Thanks in advanceRegardsJug Quote Link to comment Share on other sites More sharing options...
taith Posted January 11, 2007 Share Posted January 11, 2007 only way to do that is using html anchors... Quote Link to comment Share on other sites More sharing options...
taith Posted January 11, 2007 Share Posted January 11, 2007 meaning on the spots you want to go to put[code]<a name="test"></a>[/code]then in your header() add #test or wherever you want to go... Quote Link to comment Share on other sites More sharing options...
jug Posted January 11, 2007 Author Share Posted January 11, 2007 OK i'll try that thanks Quote Link to comment Share on other sites More sharing options...
jug Posted January 11, 2007 Author Share Posted January 11, 2007 Actually there are no header()s, the buttons are just submit buttons on HTML forms, so where would I specify where I want it to go? Quote Link to comment Share on other sites More sharing options...
taith Posted January 11, 2007 Share Posted January 11, 2007 then in your form action="" Quote Link to comment 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.