in reply to Re: Get Cookies for Form Input
in thread Get Cookies for Form Input
I just want them to print in the input box and/or become the value of the form input box.#!/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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Get Cookies for Form Input
by Your Mother (Archbishop) on Sep 16, 2010 at 00:56 UTC | |
by Anonymous Monk on Sep 16, 2010 at 03:15 UTC |