in reply to HTML and Perl

Many problens here.

  1. You are trying to parse cgi form data: use CGI;
  2. See the repetition in your elsifs? That's a sign you want a loop or its cousin map.
  3. The expression <STDIN>=$name would generate your error message. You can't assign to the STDIN stream.

After Compline,
Zaxo