in reply to Get HTML for values using CGI module

While you gave your form element an id attribute, you didn't give it a name attribute, and hence it comes as a value without a name. Give it a name="txtInput" attribute and you'll find that your Perl code will work.

Personally, I use Wireshark or the Firefox Live HTTP Headers Extension to inspect what actually gets sent to the server to check on which side the error lies.