in reply to Re-submit HTML form including inputs
When you say that you're losing the inputs, do you mean that LWP is submitting a blank form, or that it submits the form, but you no longer have the inputs, which you may want to process locally (e.g. to label the response you get from the server)?
If it's that you want the form values to persist locally, it's probably easiest to set up a hash which is keyed by the value name.
The more likely case is that it's submitting a blank form. Now, I usually do this stuff by capturing a sample post and editing the header directly. In that case, I would use the post method as you do. Is it possible that you should be using one of LWP's three request methods? Check out http://kobesearch.cpan.org/htdocs/libwww-perl/LWP/UserAgent.html and try those out. If that still doesn't work, why don't you private message me, and I'd be happy to take a look at your full code. I have a not-so-busy day at work today, and I bet we can get this working.
Hays
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Re-submit HTML form including inputs
by muzza1962 (Initiate) on Sep 12, 2006 at 02:35 UTC | |
by hgolden (Pilgrim) on Sep 13, 2006 at 20:30 UTC |