A couple of things may be causing your problem. The line
<input type="text name="test">
Should be
<input type="text" name="test">
Also you are using the name test for both the form and one of the fields. Try renaming one.
Also you can look at the HTTP_POST_VARS
reset($HTTP_POST_VARS);
while(list($key, $value) = each($HTTP_POST_VARS))
{
echo "$key = $value<br>";
}
to make sure that $test is being received.