Originally Posted by Dormilich
you don’t place it in the PHP code, you place it in the HTML code. and the HTML code responsible for the page to load after submit is in the form’s action attribute (which is btw. a required attribute).
So to get the results of the php script at the center of the page I could add an anchor link to the form action like below?
<form action="mypage.php#anchor"> // page must be in the same directory
Would I append the form action to this string?
<form method="post"> so it becomes:
<form method="post" action="mypage.php#anchor"