Get Cookies for Form Inputby Anonymous Monk
|on Sep 15, 2010 at 22:52 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
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 />
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?