Hi monks,
I am using www::mechanize to fill out an event form (pageA).
On pageA, I need to fill out some fields, then I need to click a link to pageB. On pageB, I need to click a number, which then redirect me back to pageA to continue filling out the form. When I get redirected back to pageA, the values that I have filled in textboxes are supposed to be there, but oddly enough, the textboxes have lost its values.
I traced the problem to the URL. When I get redirected to pageB the URL needs to look like this:
https://xxx.xxx.com/xxx/xxx/ch=H3&div=1&appType=xxx&EventId=365285&mds
+eId=&mdseLevel=3&buId=&xxxmdseId=215043&cpfrbuId=
So the URL is supposed to record the eventID, instead i get this:
https://xxx.xxx.com/xxx/xxx/ch=H3&div=1&appType=xxx&EventId=&mdseId=&m
+dseLevel=3&buId=&xxxmdseId=215043&cpfrbuId=
As you can see, there is no eventID assigned on the URL.
I can't click that link first then fill out the form, it has to be done in order for the form to work correctly.
Does any monks have ideas on how to solve this problem?
Code tags wrapped around URL's to eliminate horizontal scrolling, per consideration, by davido
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.