perl: unexpected error with code, can't find why??
i have the following code to parse a name text box and two hidden form fields that hold the item and quantity.
However for some reason the item displays as the first word only. For example if i set the item as 'pool table' it would show: (eg.) GTJ has ordered 6 pools.
removing the word 'table'???
can anyone help me??
Thanks
GTJ
PERL code:
#!c:/perl/bin/perl
require "formparser.lib"; &parseform;
print "Content-type: text/html\n\n";
print "<html>";
print "$formdata{name} has ordered ";
print "$formdata{qty} $formdata{itm}";
if ($formdata{qty} > 1)
{
print "s";
}
print "</html>";