That's because Item is a property instead of a method in this case.
<% my $username = $Request->Form('username')->{Item};
$username = $Server->HTMLEncode($username);
%>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Martin Douglas
Sent: Tuesday, October 28, 2003 9:31 AM
To: [EMAIL PROTECTED]
Subject: form field errors
Hi,
Having trouble reading input from a form on an asp page. Works on
another server and also on this server but with vb script.
code:
<%@ language = perlscript %>
<form action = "test.asp" method="post">
Please enter username to unlock:
<input type="textfield" name="username">
<input type="submit" value="unlock">
</form>
<% my $username = $Request->Form('username')->Item();
$username = $Server->HTMLEncode($username);
%>
end code:
I am getting that I can't use the method "Item" on an undefined value.
I am using perl 5.8.0 build 806 w IIS 5.0
Thanks for any help in advance.
martin
-------------------------------------------
Martin Douglas
Network Programmer
Information Technology Services
University of Western Ontario
[EMAIL PROTECTED]
_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs