Dependant on what version of PHP and what's in your php.ini, you can't directly access varialbes like that.
echo $n1;
should be:
echo $REQUEST["n1"];
or
echo $GET["n1"];
or
echo $_POST["n1"];
I like to use the REQUEST array b/c i change my form actions a lot and this array encompasses both the GET and _POST arrayas.