|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
Re: Re-submit HTML form including inputsby hgolden (Pilgrim) |
| on Sep 11, 2006 at 09:37 UTC ( [id://572347]=note: 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.
So I've never used HTML::Form, but this question has gone unanswered for a while, so I'll take a crack at it. My apologies if I'm no help. 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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||