I am looking to expand upon my PHP Knowledge, and have done some research on the internet. What I am trying to do is execute some code when a variable is set in the URL.
    if($_GET['variable']) && $_GET['variable'] = "something") {
        echo "Do This.";
    }
However, the code will still run regardless what variable is equal to, as long as it is set. How would I go about achieving mygoal?
 
    