The correct list is:
beginners-cgi@xxxxxxxx
Hope that helps.
On Sep 21, 2004, at 5:48 AM, manoj tr wrote:
hai,
At first i am very sorry to write again to this list. may i please
know the mailing list that i put this question>?.
Secondly i use the strict paragma and and declared variable as
correctly. After compilation there is no error and this time also i
cant read the cookie from the second window. I request you to please
point out the error if any one faced this problem.
i send thecode that i corrected as follows.
***********************************************************************
*******************************
#!/usr/bin/perl
use strict;
use CGI;
our $output = new CGI("");
our $input = new CGI;
our $cookie;
print "Content-type: text/html\r\n\r\n";
if ($input->param('cmd') eq 'test2') {&test2;}
else { &test; }
sub test {
$cookie = $output->cookie(-name => 'uid', -value => '100', -expires
=> '+1d');
$output->header(-expires => '-1d',-cookie => $cookie);
print "<html>\n";
print "<head>\n";
print $cookie." ssssssssssssssssssssssf \n";
print "<script language=\"Javascript\">\n";
print "function spawn(page) {";
print
"window.open(page,\"\",\"left=5,top=5,height=480,width=600,status=yes,t
oolbar=no,menubar=no,scrollbars=yes\");} </script>\n";
print "</head>\n";
print "<body lang=en-US style=\"background-color: rgb(153,
204, 255);\"\n";
print " <h3>MENU</h3>\n";
print "<p><a href=\"#\"
Onclick='spawn(\"/testcookie.pl?cmd=test2\")\'>Online Test </a></p>";
print "</body></html>\n";
}
sub test2 {
print "<html>\n";
print "<head>\n";
print "</head>\n";
print "<body lang=en-US style=\"background-color: rgb(153,
204, 255);\">\n";
print $cookie." dffffffffffffffffffffff \n";
print " <h3>MENU</h3>\n";
print "<p><a href=\"#\" >Online Test </a></p>";
print "</body></html>\n";
}
***********************************************************************
*******************************
Regards
Manoj
--
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org
This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|