Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Populating a form with data from a DB

by sandfly (Beadle)
on Sep 08, 2004 at 22:38 UTC ( [id://389504]=note: print w/replies, xml ) Need Help??


in reply to Populating a form with data from a DB

If you want to use the CGI for this, you have two options:
1. Set the value of the parameter using
$q->param("invest_fname", "Joe");

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.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found