http://qs321.pair.com?node_id=329223


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

Try using the CGI "override" parameter for your form fields and see if that doesn't help.

Gary Blackburn
Trained Killer

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

Replies are listed 'Best First'.
Re: Re: problem with form value (using cgi.pm)
by MCS (Monk) on Feb 16, 2004 at 13:30 UTC

    Nope... didn't help :-(

      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.