Click to See Complete Forum and Search --> : submit and anchor tags


kevin.m.clarke
07-10-2003, 05:32 AM
I have an order form with 30 lines.

First you enter a part number and a quantity. The page then submits and returns a description of the part using php.

This works fine, however I need to return to the previous loaction when the page submits, as when I order anything on a line that is below the screen, I have to scroll down again.

I have set up anchor tags at the beginning of each order line, but I am not sure on how to reference them dynamically.

Charles
07-10-2003, 06:09 AM
Originally posted by kevin.m.clarke
I need to return to the previous loaction when the page submitsThen don't do it with JavaScript - as it wont work for 13% of users it is only suitable for "fluff". Put your anchor name in a hidden element and then have your PHP script return an HTTP Responce, Redirect header with your page's URL and anchor.