Re: [CGI] fetch data from having multiple

2002-11-06 Thread aman cgiperl
Sorry that I did not mention that aaa and bbb are just examples. I won't actually know the expected names, as they are generated at run-time by a cgi script. Thanks Aman - Original Message - From: "Sales Department" <[EMAIL PROTECTED]> To: "aman cgiperl

fetch data from having multiple

2002-11-06 Thread aman cgiperl
I have a form that looks like this When I click on one of the images, the hidden value of xyz get carried over to the fetch.cgi as param(xyz) How can I determine whether img name aaa or bbb was clicked? Thanks alot Aman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

submit form pressing key

2002-10-31 Thread aman cgiperl
I have a search on my webpage. I put in keyword and press enter - the value in the textbox is not carried over, though the search.pl is executed. But if I press the Submit button, it works with the entered keyword. I want the to work too - it works on the login page. I wonder what could be the pro

catching error string from MySQL using DBI

2002-10-27 Thread aman cgiperl
I use DBI in my CGI-PERL coding. How can I get the exact output string (error/success) for display, that I would receive from the MySQL on executing the same query on the command line mysql> Thanks Aman -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

cookies

2002-10-02 Thread aman cgiperl
Hi all I need to set a cookie which expires when the browser is closed. I am not using CGI.pm My earlier query for the same for responded by telling that if I am using CGI.pm, I can do so by omitting the expiry date, but if I do so, when I do print "Set-Cookie: cart=$cart domain=.domain.com\n";

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
le read and then write problem > > On Monday, June 10, 2002, at 11:23 AM, aman cgiperl wrote: > > > $MSG is a link http://www.foo.com/dpt/index.html > > > > Is there anything else other than EOF, that can cause a while loop to exit > > when reading file? > >

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
$MSG is a link http://www.foo.com/dpt/index.html Is there anything else other than EOF, that can cause a while loop to exit when reading file? Thanks Aman - Original Message - From: "David T-G" <[EMAIL PROTECTED]> To: "perl beginners" <[EMAIL PROTECTED

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
ion from my workplace. I hope you understand and can help. Thanks Aman - Original Message - From: "David T-G" <[EMAIL PROTECTED]> To: "perl beginners" <[EMAIL PROTECTED]> Cc: "aman cgiperl" <[EMAIL PROTECTED]> Sent: Monday, June 10, 2002 12:

file read and then write problem

2002-06-10 Thread aman cgiperl
Hi all I posted this on the CGI list but no response at all. Please have a look at this problem. I am reading from an html file and writing to another. The while loop terminates before the complete file is read. The worse part is that it works for some files and doesn't for others. Moreover, it

file i/o problem

2002-06-08 Thread aman cgiperl
I have a code that looks like the following $pgs = 1000; $lks = "Welcome Message"; for($i=0;$i<$pgs;$i++){ open PGIN, "/$char/$mn/index_tmp".$i.".html"; open PGOUT, ">/$char/$mn/index".$i.".html"; while() { $_ =~ s/##MS

Re: simple array question

2002-05-21 Thread aman cgiperl
Here's how you can do it (this is just one way): #!/usr/bin/perl @x = ('a','b'); @y = ('c','d'); @z = ('e','f'); @xyz = (@x,@y,@z); print @xyz; Output is : abcdef Got it!!! Aman - Original Message - From: "A Taylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 21,

Re: query about empty return value from SELECT

2002-05-02 Thread aman cgiperl
Thanks alot. Can't move prepare outside the loop as i have to prepare for each value in the array. Why do you suggest to do it anyway? Thanks again bye Aman - Original Message - From: "Felix Geerinckx" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 11:40 AM Sub

Re: unix redhat 7.2

2002-04-28 Thread aman cgiperl
" to use a webserver, you can do so by running the web server on internal IP or localhost. Hope it helps Aman > > - Original Message - > From: "anthony ward" <[EMAIL PROTECTED]> > To: "Aman Cgiperl" <[EMAIL PROTECTED]> > Sent: Sunday, April 2

Re: unix redhat 7.2

2002-04-27 Thread aman cgiperl
I use red hat 7.2 There is no need to have intenet connection to test perl. You should just have a perl compiler. If you want to test cgi, you might want to install Apache or another web server, if you don't have one. Hope it helps Aman - Original Message - From: "anthony" <[EMAIL PROTEC

RE: Variable question

2002-04-06 Thread aman cgiperl
Execute the following on cmd line as follows $./cnt.pl , You can replace the comma (,) on the command line to find any other character's occurrence in the string ___ #!/usr/bin/perl for(;$imailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 11:53 AM To: [EMAIL PROTECTED]