Jump to content

move to page position


lioslios

Recommended Posts

guys i have a submit button that

 

if(isset($_POST['sub_diplo']))

                                {

                                  $_SESSION['tmp']=$_SESSION['tmp']." counts ";

                               

                                }

 

but tthe button is at the end of the page so when i press the button the page reloads and gose to start! exept that my code working!

 

so is any way to move page to first location??

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/255087-move-to-page-position/
Share on other sites

thanks i have make this

 

if(isset($_POST['sub_diplo']))

                                            {

                                              $_SESSION['tmp']=$_SESSION['tmp']." counts ";

                                                echo "<a name=\"jump\"></a>";

                                           

                                            }

 

 

and near button i have place the <A NAME="jump">

 

 

this works but is a correct way to do this?

ye si have try this

 

<form method="post" action="mypage.php#jump">

 

and works but i have one form tag for 12 byttons so i need more then one jump places, i have start to use one form tag for each button now!, if you have some other idea tellme, thanks anyway!

 

 

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.