Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
The stupid question is the question not asked
 
PerlMonks  

Re: Populating a form with data from a DB

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.