I take care of a small non-profit's website. I didn't build it. They have two applications (PHP and PERL) and they have asked me to streamline the logins. I don't know any PERL so I've been reading and decided that the best/easiest way for me would be to get the cookie data from the first application and put it into the text input of the second application's login (which uses HTML::Template).
My problem is with getting the cookies using 'sub cookies'.-- I can get them by running a Get-Cookie CGI without any problems. I *don't* want to store the cookies in a file if it is not necessary. Anytime I start a new module the application crashes. BTW, I'm not sure what I'm doing.
In the form <input type="text" name="state" value="<TMPL_VAR COOKIE1> "size=20 />sub cookies { my $self = shift; my $cookies = CGI->new my $thetemplate = $self->load_tmpl('theform.html'); $cookies1 = $cookies{'AnyName1'}->value; $cookies2 = $cookies{'AnyName2'}->value; $template->param(COOKIE1 => $cookies1); $template->param(COOKIE2 => $cookies2); ); }
I have read so many ways and modules for accomplishing this that I am confused (HTML::Mason, WWW::Mechanize, LWP::UserAgent, etc).
I am so lost. What am I doing wrong?
In reply to Get Cookies for Form Input by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |