|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Populating a form with data from a DBby Anonymous Monk |
| on Sep 08, 2004 at 16:30 UTC ( [id://389455]=perlquestion: 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.Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello and thanks for taking a look at this! I am a new perl programmer using CGI.pm to create my application. I have a subroutine defaultNewInvest() that creates a form that users can input some data. (The form has been truncated.) I would like to be able to search the database and retrieve the information INTO THE SAME FORM so that changes can be made. I have no trouble creating the form, inserting the data into an Oracle database, nor retrieving the names into a list. If I click on the name, I would like to be taken back to the original form with the information filled in. How do I query the database and pass all the information to defaultNewInvest() so that the information that is currently in the database can be viewed and/or edited??? I have searched the web and can not find any examples of this. I have seen HTML::Template but did not know if that was the best was to proceed. If anything is not clear, please ask. I am desperate for a solution. Thanks in advance. I am including the code for creating my form. Maybe that will help in figuring out what I am not understanding. PS. I have not included all hte subroutines. I merely included the if-elsif-else structure so that one can see the flow. Thanks again.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||