On Fri, 8 Feb 2002, Josiah Altschuler wrote:
> Is there a way to use an image button in CGI.pm to submit?
Sure:
print image_button(-name=>'name', -src=>'path/to/img');
will produce:
This is documented in the CGI.pm documentation, accessible via perldoc.
-- Brett
Is there a way to use an image button in CGI.pm to submit?
Thanks,
Josiah
-Original Message-
From: Al Hospers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 8:42 PM
To: 'Josiah Altschuler'; [EMAIL PROTECTED]
Subject: RE: Passing a hash through a URL
> I have a question a
I am not sure that this applies to command lines - if I put a file
path with / in a variable, then pass that variable to a command line
tool, I think that fails. So I constantly have to put these kinds
of variables in \\ form rather than s# before calling the CLT. Actually
what I do is to he
--- Allen Wang <[EMAIL PROTECTED]> wrote:
> I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle"
>
> Anyone know how to do this?
>
>
> Thanks,
> allen
I'm not sure exactly what this stemmed from, so my comment may be out of place, but
Perl is
portable and will let you use the
On Fri, 8 Feb 2002, Allen Wang wrote:
> I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle"
>
> Anyone know how to do this?
$string =~ s|\\||g;
(\ is used to escape metacharacters in a regexp, so you need to escape \
also).
-- Brett
I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle"
Anyone know how to do this?
Thanks,
allen
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 9:29 AM
> To: [EMAIL PROTECTED]
> Subject: beginners-cgi
On Fri, 8 Feb 2002, Eric Pretorious wrote:
> I'm hoping to build a CGI script that:
>
> 1. creates a thumbnail index of .jpg files in a directory, and
> 2. serves full-size images
>
> wrapped in an HTML template, on-the-fly.
I found the Apache::Album modlue and read the readme.txt file but
> "Eric" == Eric Pretorious <[EMAIL PROTECTED]> writes:
Eric> I'm hoping to build a CGI script that:
Eric> 1. creates a thumbnail index of .jpg files in a directory, and
Eric> 2. serves full-size images
Eric> ...wrapped in an HTML template, on-the-fly.
google for: site:stonehenge.com "Sto
http://archive.develooper.com/beginners-cgi%40perl.org/
http://lists.perl.org
At Friday, 8 February 2002, Eric Pretorious <[EMAIL PROTECTED]> wrote:
>Hello, All:
>
>I'm hoping to build a CGI script that:
>
>1. creates a thumbnail index of .jpg files in a directory, and
>2. serves full-size ima
Hello, All:
I'm hoping to build a CGI script that:
1. creates a thumbnail index of .jpg files in a directory, and
2. serves full-size images
wrapped in an HTML template, on-the-fly.
I recall a similar thread a few weeks ago on this list but have misplaced
the series of messages that trans
On Fri, 8 Feb 2002, Octavian Rasnita wrote:
> To store the file in an array, then to insert the changed value in that
> array, and then to write that array to the file, or to use a temporary file
> to store each line from the source file and twhen I want to modify a line, I
> have just to insert
--- Charles Waterman <[EMAIL PROTECTED]> wrote:
> When I try to run a CGI script on my webhost server with "use CGI
> qw/:standard/;" it does not work. What up with that
"use CGI qw/:standard/;" is perfectly valid syntax (and even good practice). However,
"it does
not work" does not give
When I try to run a CGI script on my webhost server with "use CGI
qw/:standard/;" it does not work. What up with that
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi all,
I tried to make a simple script that for the moment needs only to read the
content of a .dbx file.
I used:
#!c:\perl\bin\perl.exe
print "Content-type: text/html\n\n";
#here I printed a simple HTML header.
open (DAT, "$file");
while () {
print "$_";
}
# here the HTML footer.
I think
Hi all,
I want to read a text file line by line and to make some changes in some
lines.
Which method do you recommend?
To store the file in an array, then to insert the changed value in that
array, and then to write that array to the file, or to use a temporary file
to store each line from the so
On Fri, 8 Feb 2002 06:48:56 -0800, Troy May <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I posted a question about this a couple days ago and only got 2
> responses, but neither of them worked for him. So I figured I'd start
> new since he told me the EXACT format he would like the files to be
> in. M
Bernd Lach wrote:
>Hi there,
>
>I have a problem in detecting any kind of environment
>variables.
>
>I always get a premature script error , when I launch sth like
>this.
>
>
>#!C:/Perl/bin/perl.exe -w
>use diagnostics;
>use strict;
>
>use CGI;
>
>$browser = $ENV{'HTTP_USER_AGENT'};
>
>if ($
On , Bernd Lach said:
>#!C:/Perl/bin/perl.exe -w
>use diagnostics;
>use strict;
You're using strict and -w, good.
>use CGI;
>
>$browser = $ENV{'HTTP_USER_AGENT'};
Oops. You didn't declare $browser.
my $browser = $ENV{HTTP_USER_AGENT};
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] ht
On Fri, 8 Feb 2002, Dennis G. Wicks wrote:
> Has anyone developed any method to drop messages that
> are cross-posted to both [EMAIL PROTECTED] and
> [EMAIL PROTECTED]?
Here's the procmail recipe I use for duplicates:
:0 Whc: msgid.lock
| formail -D 8192 msgid.cache
:0 a:
DUPLICATES
-- Brett
If you're trying to view your results in a browser, you need to generate
HTTP headers.
-Original Message-
From: Bernd Lach [mailto:[EMAIL PROTECTED]]
Sent: None
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: $ENV{'HTTP_USER_AGENT'
Hi there,
I have a problem in detecting any kind of
Hello,
I posted a question about this a couple days ago and only got 2 responses,
but neither of them worked for him. So I figured I'd start new since he
told me the EXACT format he would like the files to be in. My friend wants
to rename a dat file as he calls it. (message.dat?) He would lik
If you have time, please read the following article. If you use
FormMail.cgi, then let me suggest that it's required reading.
http://www.newsbytes.com/news/02/174174.html
For beginning Perl/CGI programmers, this is good information to have. When I
first started using CGIs, I used FormMai
Hi there,
I have a problem in detecting any kind of environment
variables.
I always get a premature script error , when I launch sth like
this.
#!C:/Perl/bin/perl.exe -w
use diagnostics;
use strict;
use CGI;
$browser = $ENV{'HTTP_USER_AGENT'};
if ($browser =~ /Mozilla/) {
#
# Netscape
#
Greetings;
Has anyone developed any method to drop messages that
are cross-posted to both [EMAIL PROTECTED] and
[EMAIL PROTECTED]?
Care to share?
Thanks,
Dennis
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
24 matches
Mail list logo