|
-
Dec 8th, 2005, 02:27 PM
#1
Thread Starter
Hyperactive Member
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>";
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|