no additional jiggery-pokery going on (like
people trying to inject sql into your query with
?position="25;delete from SOMETABLE;" or however they do it.
--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
t for
when you need to limit.
--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
print Tr( td( [EMAIL PROTECTED] ));
}
print end_table();
Off the top of my head ... that should do it.
note that his use of [EMAIL PROTECTED] there is a convenient shortcut for another
CGI.pm trick : passing an arraryref to one of the subs will span it
across the contents.
print Tr( td( [
y click the image filenames above to
preview each image before making your decision."),
p("Note that this only removes the selected images from the
database entry, and does ", b("not"), " delete the files from the
directory itself.")
);
push @table, ( p({-align=>'center'}, submit(-name=>'delete',
-label=>'Remove Selected Images') ), end_form() );
return @table;
}
then somewhere in the middle of the other html output I need merely do
print existing_images($requested_itemid);
--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
, but anyway...
--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
#x27;s environment, however ssh is a viable alternative.
--
Scott R. Godin
Laughing Dragon Services
www.webdragon.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
;
since he clearly illustrates the use of the object-oriented syntax in
his example and in which case you want to get the params AFTER creating
the cgi-object
my %params = $cgi->Vars;
which ensures that you also get multi-value s as separate
values. too.
--
Scott R. Godin
Laughing Dr
Ovid wrote:
--- "Scott R. Godin" <[EMAIL PROTECTED]> wrote:
his example and in which case you want to get the params AFTER
creating
the cgi-object
my %params = $cgi->Vars;
which ensures that you also get multi-value s as separate
values. too.
$cgi->Vars separates multi
under what circumstances is the CGI.pm's STORE autoloaded method called?
is it used only when you assign values to the object, or is it only used
when receiving values (or multi-values) from the webserver query?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
Bob Showalter wrote:
Scott R. Godin wrote:
under what circumstances is the CGI.pm's STORE autoloaded method
called?
is it used only when you assign values to the object, or is it only
used when receiving values (or multi-values) from the webserver query?
It is part of the tied
Scott R. Godin wrote:
Ovid wrote:
--- "Scott R. Godin" <[EMAIL PROTECTED]> wrote:
his example and in which case you want to get the params AFTER
creating the cgi-object
my %params = $cgi->Vars;
which ensures that you also get multi-value s as separate
values.
Scott R. Godin wrote:
Ovid wrote:
--- "Scott R. Godin" <[EMAIL PROTECTED]> wrote:
his example and in which case you want to get the params AFTER
creating the cgi-object
my %params = $cgi->Vars;
which ensures that you also get multi-value s as separate
values.
Zentara wrote:
On Wed, 3 Aug 2005 03:00:01 -0700, [EMAIL PROTECTED] (Sara) wrote:
I have to test/optimize a script on a shared server. The script contains a
couple of mySQL queries etc.
Is there a way that I can see the query execution time (like in phymyAdmin) and total script execution tim
I have a multi-stage cgi I'm currently working on, and as I progress thru the
stages (the form uses POST not GET for reasons of data-size) I was hoping to be
able to simply add ?step=confirm or ?step=finish to the form action
( -action=>"$htmlform{action}?step=confirm", ... )
However it's not w
Todd W wrote:
"Scott R. Godin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
able to simply add ?step=confirm or ?step=finish to the form action
( -action=>"$htmlform{action}?step=confirm", ... )
[snip]
You could refer to the CGI.pm docs
Vance M. Allen wrote:
Sorry if the cross-posting wasn't appropriate, but I need help with this and
am not sure if it's more appropriate to post under CGI or DBI since it
involves both...I want to be sure that I can get help from the best source.
My question is probably a simple answer, but I a
script is at http://phpfi.com/78748
I followed the instructions in CGI.pm as best I could, and from what I read the
upload() function is supposed to return a filehandle ? (it doesn't say whether
this is a direct FH to the tempfile or not)
I had dome some preliminary testing with one-liners an
Wiggins d'Anconia wrote:
Scott R. Godin wrote:
script is at http://phpfi.com/78748
I followed the instructions in CGI.pm as best I could, and from what I
read the upload() function is supposed to return a filehandle ? (it
doesn't say whether this is a direct FH to the tempfile or n
Wiggins d'Anconia wrote:
Bill Stephenson wrote:
On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote:
Wiggins d'Anconia wrote:
Scott R. Godin wrote:
script is at http://phpfi.com/78748
I followed the instructions in CGI.pm as best I could, and from what I
read the upload() function i
Scott R. Godin wrote:
script is at http://phpfi.com/78748
Possibly used the wrong web browser to upload the file. Not all of them
support this feature. Firefox does not. It will however provide the CGI
script with the file name.
Firefox doesn't support file uploads? I use it al
Charles K. Clarkson wrote:
Scott R. Godin <mailto:[EMAIL PROTECTED]> wrote:
: Regrettably this isn't getting me any closer to a resolution --
: what about the code? can anyone see anything I might have
: overlooked? done wrong? should it, in fact, be working right
: now?
Did you
Dale wrote:
Hi,
I'm hoping someone can help me with an issue I've got with, I assume,
sendmail.
I've copied part of a script below. If I use the first To: line (which
takes the e-mail address from a file - and this works) then a mail
doesn't arrive. If, however, I used the second To: line (wh
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Guy Tubbs) wrote:
> but it does the same thing, i.e. I get:
>
> Line1
> Line2
>
> What I need is:
>
> Line1Line2
>
> Do you know how to get rid of the returns altogether?
s/\015\012|\015|\012//g
rivately for more
> information. One word of warning: You SPAM with it and you get dropped like
> a turd in an operating room.
>
> Mike
>
Hopefully sterilized as well so they don't continue to breed. :-)
print pack "H*", "4a75737420416e6f74686572204d61635065726
ays the best option as the cgi-docs.html file that
COMES with a fresh install of CGI.pm is updated more frequently than the
one on the website is. (for mysterious reasons known only to Lincoln :-)
print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d";
ires Class::Multimethods also to be
installed)
#!perl
use warnings;
use strict;
use Quantum::Superpositions;
my @myarray = qw( 10 34 6 87 9 );
print "ok any 'eq 10'\n" if any(@myarray) eq "10";
print "not ok all '< 85'\n" unless all(@myar
ated
> so much, uh, spam.
{MASSIVE snippage}
uh, not to mention REAMS of attributes and quoted text (ugh) that were
better left unposted. =:P
print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d";
--
Scott R. Godin| e-mail : [EMAIL PROTECT
e plenty of example scripts there as well.
print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d";
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
It is not necessary to cc: me vi
inancial incentive?
:)
print pack "H*", "4a75737420416e6f74686572204d61635065726c204861636b65722c0d";
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
It is not necessary to cc: me via e-mail unless you mean to speak off-group.
I read these v
efficient for a job
like this.
any pointers? I'm happy to toddle off and download and read my face off
-- that's not a problem.. I'd just like to have some indication on which
direction to start walking. :-)
print pack "H*", "4a75737420416e6f74686572204d6163506572
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Scott R. Godin) wrote:
Many thanks to all of you who responded. :-) One of the things I love
the most about these lists -- that one can get so many different
perspectives on a problem and solution, because it gives one so much
more
l cannot get out. Until now they didn't. Obviously, they
> found a way to get off the list.
now you all know why I would choose a usenet newsreader over a mailing
list every. single. time. whenever possible.
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Service
is there a reasonably simple way for a cgi script to tell whether it's
being accessed through SSL or not? just curious. I'd like to play with
the thought a bit, and want to have my test script report an error if it
gets accessed without SSL.
--
Scott R. Godin| e-mai
if httpd.conf has a
pointer to a perl script with CGI->compile(':all'); in it?
just curious.. the docs are a little vague on this point.
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
--
To unsubscribe, e-mai
u should also consider that the docs that come with
CGI.pm when you build it include an html formatted version of the
latest... Lincoln doesn't always update the website link above, but what
comes with CGI.pm is *always* updated. :)
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Lau
rt keys %params;
# that is the correct idiom, right?
> instead of:
>
> print "$params{q001}\t$params{q002}\t ... $params{q100}"; # 100 times
>
> "Perl is designed to give you several ways to do anything, so consider
> picking the most readable one."
don't press when you mean to press
hehehe :)
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ought, but I'd like to know perhaps a better place to pose
such a question.. beginners.cgi obviously isn't the best place for it,
but it's the closest thing I could find, here, to a starting point :)
anyone?
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Ask Bjoern Hansen) wrote:
> [EMAIL PROTECTED] (Scott R. Godin) writes:
>
> > aside from the mailing lists @apache.org I haven't seen much else, and
> > having a fair preference for a usenet-style discussion as o
acperl.org/
MacPerl is currently in a beta build with regards to perl 5.6.1. That
version does not currently support .cgi scripts as of yet.
The 520r4 build (5.004) of MacPerl does, but if your .cgi's are large
and consume much temporary memory while running, they may not work under
this me
=map;where=other;item="p
aram1%20param2%20param3"
try encoding the string using CGI.pm's escape functions (see
cgi-docs.html for URI escapes)
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
but what are we
doing? living in the stone-age of HTML back from before 1997.
Everyone's SO scared of scaring customers with broken web-browsers away
from their sites, that they practically ENCOURAGE the browser
manufacturers to continue their sloppy practices.
"I curl my lip at you,
e links on the side at
dev.macperl.org) so that you can see what's still open, and report your
own.
I'm very pleased with 5.6.1b1 so far. sweetest build I've worked with
yet, and I haven't touched the older version in ages.
--
Scott R. Godin| e-mail : [EMAI
popup_menu(-name=>'baths', -Values=>\%labels, -default=>'1'),
submit(-name=>'submit', -Value=>'Click Me'),
end_form(),
end_html;
the following output gets produced:
Content-Type: text/html; charset=ISO-8859-1
now about a certain command, like vec, you can open up a
quick MacPerl window and write
#!perl
vec();
command-click the word 'vec' while in MacPerl and MacPerl hands it off
to Shuck which looks up the term in the pod files. (in this case,
perlfunc.pod)
--
Scott R. Godin|
ngs as pipes, although OS X does.
MacPerl does have support for one-liners, but in a slightly different
manner from what you're used to, since the ClassicMacOS doesn't have and
never has had (or needed, IMHO), a command-line.
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
t", @sortedrands), "\n";
#
I don't understand why you do this:
> foreach $anumber (@sorted_a) {
> @sorted_field = split (/,/, $anumber);
when the @sorted_a's list items are not themselves separated by commas,
but individually in the array elements themsel
ter than the origianl documentation
^^
funny, I parsed this as 'complex paper folding' :-)
> http://dbi.perl.org
> http://www.mysql.com
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http
e, then redirecting the user to that file, but if they have viewed it
> before, they are getting the old file.
> thanx
try the -expires=>$value pair in the start_html() function of CGI.pm
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : htt
e but it doesn't exist. Do I have to test Perl
> scripts only on servers or it can be done on my PC? And
> what does it mean: "Type % perl -e 'print join("\n",@INC)'" ? Where should
> I type it?
> Thanks a lot.
get ActiveState's perl for Windows.
1998/06/xmlspec.dtd> and you *should* use
it. for example
http://www.w3.org/XML/1998/06/xmlspec-v21.dtd";>
CGI.pm emits an XHTML header by default, unless you specify -no_xhtml in
the invocation of use CGI qw/ :blah -no_xhtml /;
--
Scott R. Godin| e-mail : [EMAIL PROTECT
hen slide back out to main again.
a semi-slick workaround for a semi-ugly problem. supresses all those
'used only once' warnings quite nicely though.
--
Scott R. Godin| e-mail : [EMAIL PROTECTED]
Laughing Dragon Services |web : http://www.webdragon.net/
It is not necessa
ng with references, by all means use %in, but
you'll find the similarities between the objects to be *very* similar to
how CGI works with objects, and also a few peeks at perlref, perllol,
perldsc to be of enlightening proportions.
--
Scott R. Godin| e-mail : [EMAIL PROTECTE
ts and pieces, as well as CSS references. I
find that using CSS and embedding Stylesheets in my CGI's to be of much
more use than attempting to include dozens of tags and color tags
and whatnot.
Also a validator like <http://validator.w3.org/> and the companion CSS
validator
54 matches
Mail list logo