Start showing new php page in middle of the content

Kaiser

I've been looking ofr a while but I'ven't found any question that solves my question:

I've a php page with some forms, it's a long page and users may use one or some of the forms each time they connect to the website. When an users submits one of the forms the forms calls the same page but with the data updated (that works good for me).

The problem is that I would like that after submiting any form, the new page starts in middle of the scroll where the form submited is, so the user hasn't to go to the start of the page.

I'm not sure if this can be done with php or I need javascript (i don't know anything about javascript yet).

Hmmm

Use an id to navigate between elements in a page. Put # in action attribute when the user submits the form the browser will navigate to the form location

Example

 <form id="example" action="yourpage.php#example" method=...>

 <form id="example2" action="yourpage.php#example2" method=...>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Start showing new php page in middle of the content

From Dev

Prevent PHP showing results in new page

From Dev

How to overwrite whole page with new content with php?

From Dev

UIPageViewController - start not at the beginning, but in the middle (page 2)

From Dev

Page content not showing on mobile devices

From Dev

Backend content of page is not showing in wordpress

From Dev

Login page content not showing in AngularJS

From Dev

PHP Code for Hiding/Showing Content

From Dev

replace content in a page php

From Dev

PHP YII 2 why when i add new page, it's not showing nothing?

From Dev

google map not showing in page by ajax loaded content

From Dev

Master page content not showing up in child

From Dev

Master page content not showing up in child

From Dev

dompdf freezes not showing content. page is blank

From Dev

content of the page is not showing up in some manner

From Dev

default tab not showing content while load the page

From Dev

DangerouslySetInnerHtml() showing content from previous page in React

From Dev

Showing images uploaded on php page

From Dev

php paginate not showing on page 2

From Dev

Echo dynamic content in the middle of a page based on various conditions defined in the head

From Dev

showing results obtained after $_POST in a new page

From Dev

jQuery pop up showing old content not the new content

From Dev

Content written in the Page edit box not showing in the published page in Wordpress

From Dev

Content type HTML on PHP Page

From Dev

Including content of php page into another

From Dev

Send.php not showing content of the forms

From Java

How to start a Paragraph always in a new page?

From Dev

atmel studio start new project page is empty

From Dev

Start new section at top of page, not below a figure

Related Related

  1. 1

    Start showing new php page in middle of the content

  2. 2

    Prevent PHP showing results in new page

  3. 3

    How to overwrite whole page with new content with php?

  4. 4

    UIPageViewController - start not at the beginning, but in the middle (page 2)

  5. 5

    Page content not showing on mobile devices

  6. 6

    Backend content of page is not showing in wordpress

  7. 7

    Login page content not showing in AngularJS

  8. 8

    PHP Code for Hiding/Showing Content

  9. 9

    replace content in a page php

  10. 10

    PHP YII 2 why when i add new page, it's not showing nothing?

  11. 11

    google map not showing in page by ajax loaded content

  12. 12

    Master page content not showing up in child

  13. 13

    Master page content not showing up in child

  14. 14

    dompdf freezes not showing content. page is blank

  15. 15

    content of the page is not showing up in some manner

  16. 16

    default tab not showing content while load the page

  17. 17

    DangerouslySetInnerHtml() showing content from previous page in React

  18. 18

    Showing images uploaded on php page

  19. 19

    php paginate not showing on page 2

  20. 20

    Echo dynamic content in the middle of a page based on various conditions defined in the head

  21. 21

    showing results obtained after $_POST in a new page

  22. 22

    jQuery pop up showing old content not the new content

  23. 23

    Content written in the Page edit box not showing in the published page in Wordpress

  24. 24

    Content type HTML on PHP Page

  25. 25

    Including content of php page into another

  26. 26

    Send.php not showing content of the forms

  27. 27

    How to start a Paragraph always in a new page?

  28. 28

    atmel studio start new project page is empty

  29. 29

    Start new section at top of page, not below a figure

HotTag

Archive