Jump to content

How to skip to an ancor in the page?


plinto

Recommended Posts

Hi,

I made a xhtml page with a form (with an anchor name "form") for sending mail at the bottom of the page . When the submit button is pressed it calls a send.php page that generates some code and recalls the form in it.

 

The problem is this: is there some way to get the send.php page to open where the anchor is? example: pages.php#form

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/72223-how-to-skip-to-an-ancor-in-the-page/
Share on other sites

AFAIK, you can simply just use the "pages.php#form" as the action value for the form, like <form action="pages.php#form" id="form"> (when using fragments, you should rather refer to their ID attribute than name, since that behavior is deprecated)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.