Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to redisplay previously submitted text

by merlyn (Sage)
on Apr 25, 2001 at 21:58 UTC ( [id://75557]=note: print w/replies, xml ) Need Help??


in reply to How to redisplay previously submitted text

If you're using the CGI.pm shortcuts (and why shouldn't you?), you can set the default value using the param method:
use CGI qw/:all/; ... my $previous_value = "This is what I wrote before"; # fetch this someh +ow param('story', $previous_value); # sets default to previous ... print textarea('story'); # prints an input form element, defaulting to + previous value for it

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found