[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote:

: I have the web page for the form.  But the web page does not
: receive the data from the cgi file.
: I check my work in DOS.  When I type perl -c bonus.cgi
: I get a message tell me syntax ok.
: But when I check with :  perl -w bonus.cgi   I get this  under
: <BODY>:
:
: Use of uninitialized value in multiplication <*> at -----.cgi
: line  00
: Your bonus is $0.00<BR><BR>
: You entered a sales amount of $0.00 and a
: Use of uninitialized value in muliplycation <*> at ----.cgi line
:  00
: bonus rate of 0.00<BR>

    That doesn't look right. Is that edited? There shouldn't be a
line 00. And "multiplication" is spelled wrong in one error message.
Show us the unedited error messages or tell us that you edited
things. Leaving out key details is a Bad Thing.


: this is the body part as shown in my chapter of my college course
: study  book in the -----.cgi file..
:
: printf "Your bonus is \$%.2f.<BR><BR>\n", $bonus;
: printf  "You entered a sales amount of \$%.2f and a \n", $sales;
: printf "bonus rate  of %.1f%%.<BR>\n", $rate * 100;
:
: Is this a error in my book or a bug in my Perl program?

    It's an error in the program you wrote. We don't know if it is
also in your text book without a comparison. Does your teacher
allow you to get help from email lists?

HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to