or
2. Use -default and -override when you print the control:
$q->textfield( -name=>"invest_lname", -default=>"Soap", -override=>1 );
Sometimes I show pages containing several forms, so I prefer the latter approach.
(No code was tested in the writing of this answer.)
In reply to Re: Populating a form with data from a DB
by sandfly
in thread Populating a form with data from a DB
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |