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
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
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;
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
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
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
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;
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;
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 =
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
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
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
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
$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
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
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) {
$_ =~
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
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) {
$_ =~
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
-
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
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:
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
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
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);
24 matches
Mail list logo