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 Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/ 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... Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/#findComment-158226 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... Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/#findComment-158228 Share on other sites More sharing options...
jug Posted January 11, 2007 Author Share Posted January 11, 2007 OK i'll try that thanks Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/#findComment-158229 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? Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/#findComment-158232 Share on other sites More sharing options...
taith Posted January 11, 2007 Share Posted January 11, 2007 then in your form action="" Link to comment https://forums.phpfreaks.com/topic/33742-php-page-refresh-in-same-place/#findComment-158241 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.