in reply to Re: Get Cookies for Form Input
in thread Get Cookies for Form Input

Oh, no. Please not PHP::Session. That was one of the first things I read about. The generic script that gets the cookies and prints them.
#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); use CGI; $cgi_query = new CGI; print $cgi_query->header; print $cgi_query->start_html('get-cookie.cgi'); print $cgi_query->h4('My cookies are:'); $myCookie1 = $cgi_query->cookie('c1'); $myCookie2 = $cgi_query->cookie('c2'); $myCookie3 = $cgi_query->cookie('c3'); print "<PRE>\n"; print $myCookie1; print "<br>\n"; print $myCookie2; print "<br>\n"; print $myCookie3; print "</PRE>\n"; print $cgi_query->end_html;
I just want them to print in the input box and/or become the value of the form input box.

Replies are listed 'Best First'.
Re^3: Get Cookies for Form Input
by Your Mother (Archbishop) on Sep 16, 2010 at 00:56 UTC

    To what end? Cookies cannot be used that way. Unless you define your problem better, you are unlikely to get any other help. From your description so far, PHP::Session is exactly what you want and by far the easiest way to get there. Giving a cookie that came from Perl code to PHP will gain you nothing without writing a mess of new and fairly hairy PHP. Second guessing developers who know this stuff is also unlikely to help. :)

      The first application is a combination PERL/PHP but the cookie is PERL in origin. The second application is pure PERL.

      PHP/PERL application ==cookie==> PERL application