Jump to content

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!

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.