advancing to next section on page when clicking submit

advancing to next section on page when clicking submit

On the index page I have several page sections with different page id's. Each one has a form and when I put (for example:) action="#nextpage" and click submit it does not advance to that next section id as it should.

When I use a normal button it does advance to that section id.

How do I accomplish this using the <form method="post" action="#nextpage" >  ?

Thank you,

Darrell