amulcahy has asked for the wisdom of the Perl Monks concerning the following question:
that is what I would like it to do, but what I actually get is textarea = xyz. Here's my code.....1st time: Fields 1,2,3 = a,b,c (Click Insert) textarea = abc 2nd time: Fields 1,2,3 = x,y,z (Click Insert) textarea = abcxyz
I tried having the textarea inside the first form but then the Field values don't exist until after the 'click'.print $query->start_multipart_form("POST", "test"); print "Field Name:"; print $query->textfield(-name=>'FieldOne', -size=>25); print "Field Type:"; print $query->textfield(-name=>'FieldTwo', -size=>25); print "Field Length:"; print $query->textfield(-name=>'FieldThree', -size=>25); print "<br>" . $query->submit('Insert Field'); print $query->endform(); $testText = $query->param('SPCtext') . $query->param('FieldOne') . $qu +ery->param('FieldTwo') . $query->param('FieldThree'); print $query->start_multipart_form("POST", "test"); print $query->textarea(-name=>'SPCtext', -cols=>50, -rows=>10, -value= +>$testText); print $query->submit('Save'); print $query->endform();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: populating a textarea
by Trimbach (Curate) on Nov 09, 2001 at 17:33 UTC | |
by amulcahy (Acolyte) on Nov 09, 2001 at 18:45 UTC | |
|
Re: populating a textarea
by George_Sherston (Vicar) on Nov 09, 2001 at 17:08 UTC | |
|
Re: populating a textarea
by andye (Curate) on Nov 09, 2001 at 16:54 UTC |