Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: problem with form value (using cgi.pm)

by MCS (Monk)
on Feb 16, 2004 at 13:30 UTC ( #329288=note: print w/ replies, xml ) Need Help??


in reply to Re: problem with form value (using cgi.pm)
in thread problem with form value (using cgi.pm)

Nope... didn't help :-(

  • Comment on Re: Re: problem with form value (using cgi.pm)

Replies are listed 'Best First'.
Re: Re: Re: problem with form value (using cgi.pm)
by Trimbach (Curate) on Feb 16, 2004 at 14:13 UTC
    Ok. Here's your problem: you're missing a comma in your print statement. It should read like so:
    print "Qty:", $query->textfield(-name=>"qty$ingredientAoH[$i]{ingID}", -default=>"$ingredientAoH[$i]{qty}", -size=>'10', -maxlength=>'20');

    Note the comma between -default=>"$ingredientAoH[$i]{qty}" and -size=>'10'. That fixes your problem. :-)

    Gary Blackburn
    Trained Killer

      Ahhhh.... Thank you so much this has really been bothering me as it looked right. I should know by now that if strange things are happening it's because of syntax problems. Now I can edit my recipes without having to replace all the quantities that are fractions.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://329288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2016-07-27 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (245 votes). Check out past polls.