Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

holding page position after refresh

Status
Not open for further replies.

kenabbott

Programmer
Mar 16, 2005
6
GB
I have a php form with a number of dropdowns - each time a value is chosen from a dropdown the page is refreshed (this updates a grand total). I'm using the following to do this:

<select name="mydropdown" id="mydropdown" onChange='submit()'>

The problem I have is that after the refresh I want the page to hold screen position rather than refreshing at the top of the page but I'm having problems in achieving this.

All suggestions graetefully received.

Many thanks

Ken
 
Hi,

I guess that you have to put the $_SERVER['PHP_SELF'] as a target in the submit().

I'm not very in to javascript, as I try to avoid client-side scripting as much as possible.
You however need to specify the target, as I mentioned above.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top