Matthias,
In this particular case a submit button is pressed the page is
self-referential so the check can occur afterwards and perform an action on
the same page (for example I have PHP code to check a users input on an
order form -- based on a PHP check I can run this check and have a result
occur on this same page). An HTML anchor must be pressed to navigate to a
page location I believe, unless you know a way to force it to occur without
user input.
"Matthias Esken" <mu******************@usenetverwaltung.org> wrote in
message news:cb**********@usenet.esken.de...
TG schrieb:
How can I in PHP, based on a result, move the cursor to a certain
location on the page?
You can't. PHP is running on the server and when the browser displays
your page, the PHP script is long gone.
I want the same result as Anchor tags in HTML. I want to go to
a certain section of the same page based on a return result in PHP. What
this is for is an order forms page - when a user fills out a section
incorrectly, I want the page to display at that location in the form
after the user presses a submit button.
Then use HTML anchors.
Regards,
Matthias