Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Retrieve a variable from a GET

@shanebp

Moderator

if I print $_GET it return an empty array

Then there is nothing in $_GET. You should see $_GET variables in the browser address

if (isset($_GET['var1'])) 
    echo "OK";
else
    echo "There is no variable called 'var1' being passed.";
Skip to toolbar