No, you're defininitely in the right forum. :-)
= is an assignment
== is a test for equality
Your code sets $var to a null string, then resets it to "test" and then echoes "blah" because the result of the assignment is non-null.
After you fix that problem, you can look up "Variables from outside PHP" in the manual. Read that section and you should understand $GET and $POST superglobals.