By default, PHP4.1.1+ doesn't register globals, so you'll have to get them from the $REQUUEST array or similar (you can also use $GET, $POST, $COOKIE etc but afaik $_REQUEST has all of the vars).
To get the vars from your form you simply write :
$namnet=$_REQUEST['namnet'];
Or you can work directly with the $_REQUEST['namnet'] var if you wish (it's a superglobal so it's scope covers all of your functions too, which is nice)
HTH.