You could either post a variable with a form ( will not be seen ) or add it to the URL.
The benifit of the URL method is if somebody adds the page to favorites the variable will be saved in the URL. The form method is a neater URL but the page when visited again from the saved favorite will not display any information.
You then read the variable on the second page and use it in your MySql query.
That scripts just pulls all the data points out of the database and shows them. But then, you already knew that
What would you like achieve exactly? You said that you wanted to display different sets of map points; how are they different (i.e., what separates them from the others).
Also $_SESSION is (most likely, since I’m not 100% sure what you’re up to yet) not what you need here.
If the change is to be persistent just change the script, or if the script needs to react on a passed parameter (for example markers_xml.php?type=gasstation) use $_GET