fetch data from having multiple input type=image

2002-11-06 Thread aman cgiperl
I have a form that looks like this form action=fetch.cgi method=post input type=hidden name=xyz value=abc input type=image src=/file/path/.jpg name=aaa input type=image src=/file/path/.jpg name=bbb /form When I click on one of the images, the hidden value of xyz get carried

Re: [CGI] fetch data from having multiple input type=image

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 [EMAIL PROTECTED] Sent: Wednesday

two cookies from one domain

2002-11-01 Thread aman cgiperl
Hi How do I set two cookies, from two different scripts, same domain? I tried with different names for cookies as follows and I lose'em Script1.cgi has the following code: my $ct = rnd_num;# random number generator use CGI::Cookie;

submit form pressing Enter 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 enter to work too - it works on the login page. I wonder what could be

submit form pressing Enter 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 enter to work too - it works on the login page. I wonder what could be

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

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;

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;

database connection problem

2002-08-30 Thread aman cgiperl
Hello everyone I am doing the following - 1 #!/usr/bin/perl 2 3 use strict; 4 use CGI qw(:standard); 5 use CGI::Carp qw(fatalsToBrowser); 6 use DBI; 7 8 print header; 9 print start_html(); 10 $s =

database execute status

2002-08-30 Thread aman cgiperl
Hi All Is there a way to check the status of $sth-execute; to check if it successfully executed. Also if I pass on a query to a mysql database using perl's DBI, and suppose it runs into error, how can I capture that error. Thank you Aman

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 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

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
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:25 PM Subject: Re: file read and then write problem -- To unsubscribe, e-mail: [EMAIL PROTECTED

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] Cc: aman cgiperl [EMAIL PROTECTED] Sent

Re: file read and then write problem

2002-06-10 Thread aman cgiperl
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? there is something that will stop the substitution - a slash in $MSG. you could

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(PGIN) { $_ =~

Re: file i/o problem

2002-06-08 Thread aman cgiperl
Refering lines 6-9 of code below: The file is being read and each line printed as it is read. The while loop is getting terminated before the file is competely read. Suggestions? Thnx Aman - Original Message - From: aman cgiperl [EMAIL PROTECTED] I have a code that looks like

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(PGIN) { $_ =~

Re: Netscape vs. IE Discrepancy FIXED

2002-05-21 Thread aman cgiperl
Hi As a developer I won't agree that IE is smart because it lets programmers ignore minor mistakes. It allows you to be a negligent programmer. Always use netscape for testing because that's the real test. Then use IE - that's what the most of the world uses after all!!! Thanks Aman -

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, 2002

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 Subject:

Re: unix redhat 7.2

2002-04-28 Thread aman cgiperl
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 28, 2002 3:48 PM Subject: Re: unix redhat 7.2 Hi, can't you test your cgi script

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

RE: Variable question

2002-04-06 Thread aman cgiperl
Execute the following on cmd line as follows $./cnt.pl string , You can replace the comma (,) on the command line to find any other character's occurrence in the string ___ #!/usr/bin/perl for(;$ilength($ARGV[0]);$i++) { $str[i] = substr($ARGV[0],$i,1);