cant read cookie values from popup window....... plzz help me........

2004-09-21 Thread manoj tr

Hai all,


 I use the strict paragma and and declared variable as  correctly. After compilation 
there is no error and this time i  
 cant read the cookie from the second window (pop up window generated by javascript). 
I request you to please point out the error if any one faced this problem.

 i send thecode that i corrected as follows.

Thanks in Advance...

Regards
Manoj


**
#!/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 => u100', -expires => '+1d');
  $output->header(-expires => '-1d',-cookie =>$cookie);
print "\n";
 print "\n";
 print $cookie." ssf \n";
 print "\n";
 print "function spawn(page) {";
 print  
"window.open(page,\"\",\"left=5,top=5,height=480,width=600,status=yes,toolbar=no,menubar=no,scrollbars=yes\");}
 
\n";
 print "\n";
 print "MENU\n";
 print "OnlineTest ";
 print "\n";
 }

 sub test2 {
 print "\n";
 print "\n";
 print "\n";
 print "\n";
 print $cookie." dff \n";
 print "   MENU\n";
 print "";
 print "\n";
 }

*

-- 
__
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: cant read cookie values from popup window....... plzz help me........

2004-09-21 Thread Bill Jones

--- manoj tr <[EMAIL PROTECTED]> wrote:

>  i send thecode that i corrected as follows.



>   $cookie = $output->cookie(-name => 'uid', -value => u100', -expires
> => '+1d');


Well, for one, your quotes are unba;nced starting at the above line.

Also, I would use -

use strict;
use warnings;
use diagnostics;


HTH;
-Sx-


=
-Sx-
seeking employment: http://youve-reached-the.endoftheinternet.org/



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]