Re: Redirecting to a different url with cgi

2003-11-26 Thread Aman Raheja
#!/usr/bin/perl   use strict;use CGI qw(:standard);   my $url = ""        ## The URL to be redirected to print redirect($url); ----   Aman Raheja AGF Technologies http://www.agftech.com       - Original Message - From: Ash Singh To: [EMAIL

Re: Cookie - problem

2003-11-05 Thread Aman Raheja
/Cookie.pm Why is it there? Could you please share? Thanks Aman Raheja AGF Technologies http://www.agftech.com - Original Message - From: "Christian Klinger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 10:09 AM Subject: Cookie - pro

query about empty return value from SELECT

2002-05-02 Thread Aman Raheja
My code looks like following foreach (@abc) { $sth = $dbh->prepare("select distinct X from Y where P='$_'"); $sth->execute; $reference = $sth->fetchall_arrayref(); if(@$reference eq '') { print "$_ in empty"; } } For some values of $_ the $reference has some value and i

Re: problem sending mail

2002-04-10 Thread Aman Raheja
It didn't work either way as suggested using -t only or changing the delimiting tag with print statetent I tried to do the same on the command line and it works. I wonder what is missing here. Help is greatly appreciated Aman >From: "Aman Raheja" <[EMAIL PROTECTED]&g

problem sending mail

2002-04-10 Thread Aman Raheja
Hi all I am trying to send a mail with the following code and the last print statement doesn't print, ie, the mail is not sent. This code is called on submitting a form on the web open(MAIL, "/usr/sbin/sendmail -oi -t") || die "Can't open mail"; print MAIL <"; ---

form and frames - HELP !!!

2002-04-08 Thread Aman Raheja
Hi everyone I have a situation here. I have to do it this way, becuase that's how the framework is. When I submit a form, it is processed by abc.cgi. Now this abc.cgi has to be a frame. The main page is xyz.cgi, with a header, a left frame and output of abc.cgi, as the right part of the frame pa

netscape problem !!!

2002-04-01 Thread Aman Raheja
Hi all I have created a cgi-perl script for a web-site. I am using cookies and mysql for database on a Linux box. When my page is called in IE, it works great, but Netscape throws out the whole HTML code. Now, if I copy this code and save it in a file as xyz.html, it works perfect in Netscape.