Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Copy data from one form to another?

by fmogavero (Monk)
on Mar 11, 2005 at 19:46 UTC ( [id://438775]=perlquestion: print w/replies, xml ) Need Help??

fmogavero has asked for the wisdom of the Perl Monks concerning the following question:

If you have two forms on web page, is it possible to copy data from one form to the other?

Replies are listed 'Best First'.
Re: Copy data from one form to another?
by jZed (Prior) on Mar 11, 2005 at 20:12 UTC
    Assuming, I'm guessing correctly what you want to do, the answer is yes, use JavaScript. Better tell us some more about what you want to accomplish if that answer doesn't suffice.
      I have some information in one form. Let's say name, address, city, state, zip. We decide to change the city. How do I get that information into another form on the page. This is database driven.
        I'm afraid I still don't have a picture of what you are trying to do. Maybe you mean copying in the page itself. The user types in their ctiy in form #1 and the name automatically gets copied into form #2 ... that can be done with JavaScript. Or maybe you mean that when they submit form #1 the data gets entered in the database and then the user is shown the same page with data from the database filling in form #2. In that case, read the data from the database into CGI.pm params and simply display the forms again using CGI.pm's sticky feature which will place the new values in the forms. But then maybe you mean something other than either of those.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found