Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
multiple form interaction in cgiby vdubjunkie (Novice) |
on Nov 29, 2007 at 16:11 UTC ( [id://653886]=perlquestion: print w/replies, xml ) | Need Help?? |
vdubjunkie has asked for the wisdom of the Perl Monks concerning the following question:
All, This may be more of a HTML question, but it involves using CGI, and I imagine people here will know. What I am trying to do is to have multiple forms of various types which are able to affect one another. What I mean is that if a user selects an option in a popup over here, the options over there will be based upon that selection. Ultimately these values will be populated by fields in a database, but I will worry about integrating that separately. It seems impossible to avoid the idea that the page will actually be "redrawn" with each "submit," and I always seem to lose functionality at this point. I have chopped out parts of a script I was trying to do something similar with, so understand that this code is "chopped" What I am trying to do here is execute a system script when the user clicks the "Gather site info" button, and have the button change into a "Update site info" button since the initial gathering has already taken place. However, when you click the button, none of the buttons are redrawn. I have done this code a NUMBER of different ways, but I cannot seem to have this basic element of allowing events from one "button" affect other values and still have all other forms on the page stay in tact.
I implore the wisdom of the monks on this one.
Back to
Seekers of Perl Wisdom
|
|