Hello again monks.
Same problem but I have more helpful information, I think.
In short I'm writing a small login script to sign me into http://www.justanswer.com/login.aspx. It has a email/password combo, pretty simple.
However there appears to be JS in the page that loads a different form all together. Because the JS doesn't work in Mech I can't get to the normal sign in form. If you go to the link I gave you and you choose NEW USER you'll see it loads a new form instead.
Can someone help me figure out a way to get this to work on their site? I really could use some help here. I just can't figure out how to get this script to work for me.
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use WWW::Mechanize;
my $email = '';
my $password = '';
my $ja_login = 'http://www.justanswer.com/login.aspx';
my $answer_page = 'http://www.justanswer.com/expert/question-list.aspx
+';
my $confirm_signon = 'My Questions';
my $form_radio_button = 'returning';
print header, start_html("JA");
my $mech = WWW::Mechanize->new(agent => 'Windows IE 8');
$mech->get($ja_login);
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.