As a test, you could also try calling the script with the name parameter in the URL with something like http://your_server/script.pl?name=my_name
This will help you determine if the problem is with your form or your script. You might also want to print something in the branch that writes to the file. For example, print the param back to yourself.