K
Keflavich
I'm trying to make a page that effectively has a menu to choose two
options. The first, it uploads a file, reads it, compares it to
another file on the host computer. The second, it opens up a new form
on the same page to input data and compare to the same file on the
host computer.
Currently, the first option works great. The second option does
create the additional form, but when I submit the second form the page
clears back to its original state. Of course, this makes some sense
to me, seeing as I'm posting only the contents of the second form, but
I hoped there was a way around it.
I'm also trying to dynamically create portions of the page - i.e., one
button outputs some data that includes other buttons, which, when
clicked, would "expand" and show more data.
My description above is pretty vague, so I'm sure I'll need to clarify
some; I don't think I have a great grasp of the terminology. But I
think a simple question to answer would be, "How do you have a second
form submit (POST) all parameters from previous forms when it must be
a separate form?"
I tried searching the forums and google for some answer, but I have no
idea what exactly I'm searching for. I'd be happy with some good
links describing how to do this. BTW, I'm using CGI.pm.
Thanks,
Adam
options. The first, it uploads a file, reads it, compares it to
another file on the host computer. The second, it opens up a new form
on the same page to input data and compare to the same file on the
host computer.
Currently, the first option works great. The second option does
create the additional form, but when I submit the second form the page
clears back to its original state. Of course, this makes some sense
to me, seeing as I'm posting only the contents of the second form, but
I hoped there was a way around it.
I'm also trying to dynamically create portions of the page - i.e., one
button outputs some data that includes other buttons, which, when
clicked, would "expand" and show more data.
My description above is pretty vague, so I'm sure I'll need to clarify
some; I don't think I have a great grasp of the terminology. But I
think a simple question to answer would be, "How do you have a second
form submit (POST) all parameters from previous forms when it must be
a separate form?"
I tried searching the forums and google for some answer, but I have no
idea what exactly I'm searching for. I'd be happy with some good
links describing how to do this. BTW, I'm using CGI.pm.
Thanks,
Adam