I've got two isset function
function getPlayers(){
if (isset($_POST['select']))
{
global $t1select;
global $t2select;
The code above is part of the first function, notice the two global variables I declared, I did this because I would like to use them in my second functions:
function PlayerAttributes(){
if (isset($_POST['teamselect'])) {
The function above is my second function.
The Problem
When I try to refer to the global variables in the second function, I get the error message "Undefined variable: t1select "
What am I doing wrong?