[11293] in Perl-Users-Digest
Perl-Users Digest, Issue: 4893 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Feb 14 18:07:22 1999
Date: Sun, 14 Feb 99 15:00:25 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 14 Feb 1999 Volume: 8 Number: 4893
Today's topics:
[AJM] Tables and CGI.pm (Murphy)
Re: [AJM] Tables and CGI.pm <Tony.Curtis+usenet@vcpc.univie.ac.at>
CGI.pm and empty multipart forms miko@idocs.com
Re: cookies pointers <mohhfohh@usa.net>
File creation problem !!Someone has to know this!! <patfong@yoyo.cc.monash.edu.au>
greedy operators - help! <usenet@arix.com>
Re: greedy operators - help! (brian d foy)
Re: greedy operators - help! <flavell@mail.cern.ch>
Re: how do I get a date in perl? <tavi@earthling.net>
Looking for CGI programmer (DCG Ryan)
Re: newbie prob - server errors (Abigail)
Re: newbie prob - server errors (I R A Aggie)
Re: newbie prob - server errors <chad@vcn.net>
Re: Newbie question <jcounts@voicenet.com>
Re: newbie: hitcounter <chad@vcn.net>
Problem With Output of HTML Headers - Interesting <tasslehoff@vt.edu>
Re: Problem With Output of HTML Headers - Interesting (Tasslehoff Burrfoot)
Re: Problem With Output of HTML Headers - Interesting (I R A Aggie)
Re: Shell access? <bgarrett@hamilton.net>
Re: Shell access? <bill@fccj.org>
Simple question of the beginner. <yuriyt@ix.netcom.com>
Re: The order of form fields that recieve by cgi progra <tavi@earthling.net>
Re: The order of form fields that recieve by cgi progra <jipes@ispchannel.com>
Re: The order of form fields that recieve by cgi progra <Tony.Curtis+usenet@vcpc.univie.ac.at>
Web based calendar <mshaff@smtp.ix.netcom.com>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 14 Feb 1999 21:50:23 GMT
From: jt45@mail.tir.com (Murphy)
Subject: [AJM] Tables and CGI.pm
Message-Id: <36c7441f.485755@news.supernews.com>
Ok, I'm no expert with CGI.pm but I'm kind of stuck...
Here's the issue.
I have a table that contains two columns A and B.
Everything in column A is right aligned and everything in column B is left
aligned. Works great in HTML... I try doing this with CGI.pm to no avail. How
do I set up the td() variable to do this????
Any help would be greatly appreciated.
Murphy
"Trying is the first step towards failure" - Homer J. Simpson
For links and guides to:
Dodge RAMS
jump to http://www.geocities.com/~fireball_x
OverClocking, 3D Cards, Linux tips
jump to http://skyscraper.fortunecity.com/binary/249/
Wrestling
jump to http://murphy.engineering.webjump.com
------------------------------
Date: 14 Feb 1999 22:22:52 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: [AJM] Tables and CGI.pm
Message-Id: <83btiw65oz.fsf@vcpc.univie.ac.at>
Re: [AJM] Tables and CGI.pm, Murphy
<jt45@mail.tir.com> said:
Murphy> I have a table that contains two columns A
Murphy> and B. Everything in column A is right
Murphy> aligned and everything in column B is left
Murphy> aligned. Works great in HTML... I try
Then everything will be fine writing HTML via CGI.pm
too :-)
Murphy> doing this with CGI.pm to no avail. How do
Murphy> I set up the td() variable to do this????
[ td() isn't a variable, it's a method ]
perldoc CGI has an example of generating a table.
By simply extending the logic of table attributes,
how about:
print table({width => '100%', border => 1},
TR(
td({align => 'right'}, 'left').
td({align => 'left'}, 'right')
)
);
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien. | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Sun, 14 Feb 1999 17:50:11 GMT
From: miko@idocs.com
Subject: CGI.pm and empty multipart forms
Message-Id: <7a72ci$n8u$1@nnrp1.dejanews.com>
I'm finishing up a CGI which performs the basic function of displaying
whatever data is sent to it. Readers of my Guide to HTML find it useful for
practicing forms. (You're welcome to try it out:
http://www.idocs.com/cgi-bin/mc/mycgi.pl ). I've run into one problem I
can't figure out. Consider the following form:
<FORM
METHOD=POST
ENCTYPE="multipart/form-data"
ACTION="http://www.idocs.com/cgi-bin/mc/mycgi.pl"
>
<INPUT TYPE=SUBMIT>
</FORM>
That's a multi-part form with no fields. Now, if you're thinking "that's
wrong, such a form makes no sense" then you're right -- but this is for
practice and sometimes people send silly data in practice.
When such a form is submitted, CGI.pm barfs up an error: "Malformed multipart
POST". What I'd rather do is catch the situation and write out something more
useful like "Multipart forms must have at least one field". Could some kind
person explain how this might be done?
-miko
--
Miko O'Sullivan
Author of The Idocs Guide to HTML
http://www.idocs.com/tags/
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Feb 1999 13:01:27 -0600
From: "Mohhfohh" <mohhfohh@usa.net>
Subject: Re: cookies pointers
Message-Id: <7a764r$5kn@news.dx.net>
Here are two articles on "How to get an set cookies using CGI.pm":
http://www.DevDaily.com/perl/edu/articles/pl010011/
http://www.DevDaily.com/perl/edu/articles/pl010012/
dan wrote in message <36BDC7B0.7503DC86@mailcity.com>...
>can somebody give me a quick rundown on how to read and write cookies
>with perl, or refer me to some documentation? thanks
>
>
------------------------------
Date: Mon, 15 Feb 1999 09:56:57 +1100
From: Patrick Fong <patfong@yoyo.cc.monash.edu.au>
Subject: File creation problem !!Someone has to know this!!
Message-Id: <Pine.OSF.4.00.9902150937440.23289-100000@yoyo.cc.monash.edu.au>
My problem is that I want to create a file and write data to it using
Perl. Or any other languages.
The file name is supplied by the client in the Web browser and the data is
written to it upon form submission.
What I have tried is the following
1) $filename = "$FORM{'filename'}".".txt";
open (RECORD, "+>filename");
print RECORD "...form data...";
My problem is that the file isnt created. So I dont really think that Perl
can create a file? So am I right?? Is there any other languages that
creates a file... besides Java (becoz I hate java :-))?? Can someone tell
me how to do it pls? I think that this problem is pretty common... and
that you can create files trivially(?) but I sure dont know how to do it.
This problem has been bothering me for ages!!!
Pls Help. Tnx in advance.
P.
*************************************************************************************
Three rules I live by
1) Everyone has eaten Macdonalds.
2) Everyone has seen Neighbours at least once.
3) Everyone has peed in the shower.
I am 98% Malaysian with 2% Australian.
So when I ask you, "So how?" I would expect you to answer, "Like that lor".
Email:
pfon2@student.monash.edu.au
lielar@hotmail.com
lesdabetter@geocities.com.au
patfong@yoyo.cc.monash.edu.au
patfong@eisa.net.au
*************************************************************************************
------------------------------
Date: Sun, 14 Feb 1999 10:50:06 -0800
From: "Asterix" <usenet@arix.com>
Subject: greedy operators - help!
Message-Id: <fWEx2.1873$bP2.19644@typhoon-sf.pbi.net>
In Korn Shell I can very simply strip the extension of a filename like this:
fn=tst.part.of.the.name.ext
echo ${fn%.*}
...which returns: "tst.part.of.the.name". I could become greedy by
specifying
echo ${fn%%.*}
...which would return "tst".
In Perl I seem unable to accomplish the same thing very elegantly, I can
say:
$fn =~ s/(.*)\..*/$1/;
which works but if I use the more elegant:
$fn =~ s/\..*$//;
I get greedy behaviour by default and the non-greedy operator I can't seem
to make work. What's wrong with this?
$fn =~ s/\..*?$//;
thx.
------------------------------
Date: Sun, 14 Feb 1999 15:55:25 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: greedy operators - help!
Message-Id: <comdog-ya02408000R1402991555250001@news.panix.com>
In article <fWEx2.1873$bP2.19644@typhoon-sf.pbi.net>, "Asterix" <usenet@arix.com> posted:
> I get greedy behaviour by default and the non-greedy operator I can't seem
> to make work. What's wrong with this?
>
> $fn =~ s/\..*?$//;
the non-greedy modifier, ?, takes the shortest match. the
quantifier, *, matches 0 or more times. the shortest match for the
combination *? is nothing. however you have to match up to the end
of the line says the anchor, $, which makes the shortest match that
which matches until the end of the line.
since what you are trying to do is to remove the file extension, you
should make sure that your regex starts removing things at the last
'.' rather than the first one. your first regex did the trick ;)
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Sun, 14 Feb 1999 21:59:24 +0100
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: greedy operators - help!
Message-Id: <Pine.HPP.3.95a.990214215815.373A-100000@hpplus01.cern.ch>
On Sun, 14 Feb 1999, brian d foy wrote:
> since what you are trying to do is to remove the file extension, you
> should make sure that your regex starts removing things at the last
> '.' rather than the first one. your first regex did the trick ;)
I don't recall what the "first regex" was, but take care about
what it does with a filename such as /foo.bar/baz !
------------------------------
Date: Sun, 14 Feb 1999 13:33:09 -0600
From: "Walter Torres" <tavi@earthling.net>
Subject: Re: how do I get a date in perl?
Message-Id: <36c72560@news1.us.ibm.net>
I have a very small Perl file that I created to do simple Date and Time
functions.
Nothing like Date:Manip, but a lot smaller.
If you are interested in it, drop to my web site and take it.
www.tscinternet.com/perl
You need to use this exact address, just dropping inot the main page will
get you nowhere.
Walter
PS: The only problem I have with this file is TimeZone info on Win32 and
Mac.
------------------------------
Date: 14 Feb 1999 18:19:42 GMT
From: dcgryan@aol.com (DCG Ryan)
Subject: Looking for CGI programmer
Message-Id: <19990214131942.28834.00001522@ng-fd1.aol.com>
Hello,
I am looking for a CGI programmer to work for a gaming website. The site
has not launched yet, and a CGI program to easily update the news daily is
needed. If you are interested, please e-mail (ryan@multi-platform.com).
Regards,
Ryan Dawson
------------------------------
Date: 14 Feb 1999 17:36:44 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: newbie prob - server errors
Message-Id: <7a71jc$rr8$1@client2.news.psi.net>
qbe (qbe@mailexcite.com) wrote on MCMXCIII September MCMXCIII in
<URL:news:7a6qvl$c01$1@news.inconnect.com>:
;;
;; Script execution error
;; Unable to execute script due to a configuration problem.
;; Please notify the webmaster of this error.
;; exec() returned: 2: No such file or directory
Which part of "Please notify the webmaster of this error" didn't you
understand? Or do you think comp.lang.perl.misc is the webmaster?
Abigail
--
perl -e 'for (s??4a75737420616e6f74686572205065726c204861636b65720as?;??;??)
{s?(..)s\??qq \?print chr 0x$1 and q ss\??excess}'
------------------------------
Date: 14 Feb 1999 17:36:42 GMT
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: newbie prob - server errors
Message-Id: <slrn7ce2i4.4ht.fl_aggie@PacificOcean.coaps.fsu.edu>
On Sun, 14 Feb 1999 08:49:21 -0700, qbe <qbe@mailexcite.com> wrote:
+ the way, my .cgi file's permission is 755,
[whole list o' things, including just a code fragment, well done]
+ (This works from my UNIX shell, too - it prints out that stuff fine.
+ But when I link it to a browser, I get the following error message)
+ Script execution error
+ Unable to execute script due to a configuration problem.
+ Please notify the webmaster of this error.
^^^^^^^^^^^^^^^^^^^^
I hate to ask: have you notfied the webmaster? what did they say??
James
------------------------------
Date: Sun, 14 Feb 1999 19:32:56 GMT
From: Chad M. Townsend <chad@vcn.net>
Subject: Re: newbie prob - server errors
Message-Id: <7a78d8$s8l$1@nnrp1.dejanews.com>
I would contact the sys admin or tech support for your ISP, everything looks
good. Send them a email with the location of your script have ask them if
they will take a quick peek.
-chad
In article <7a6qvl$c01$1@news.inconnect.com>,
"qbe" <qbe@mailexcite.com> wrote:
> I'm trying to pick up cgi and perl on my own... but so far I'm unable to
> run my .cgi scripts. I've read several FAQ's & tutorials, but none seem to
> be addressing my problem adequately. Just to get the obvious stuff out of
> the way, my .cgi file's permission is 755, #!/usr/bin/perl *is* where my
> ISP's CGI FAQ says where to access perl, I've got my .cgi file in the
> appropriate location of my account, I've got the whole "header + a blank
> line" thing going on... Here's the Perl code, it's brutally simple:
>
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "<HTML><HEAD><TITLE>test cgi script</TITLE></HEAD><BODY>Hello,
> world!</BODY></HTML>\n";
>
> (This works from my UNIX shell, too - it prints out that stuff fine.
> But when I link it to a browser, I get the following error message)
>
> Script execution error
> Unable to execute script due to a configuration problem.
> Please notify the webmaster of this error.
> exec() returned: 2: No such file or directory
>
> The only file or directory I thought I was specifying was the location
> of perl, but since I'm pretty confident that part's correct there's nothing
> really left I know how to mess with. All the stuff I've read just assumes
> you get this part of the process working without too much trouble, so now
> I'm stuck. Not to mention aggrovated, confused, etc. Please help!
>
> Eric
>
>
--------------------------------------------------------
Chad M. Townsend Virtual Community Network, Inc.
Chief Technical Officer Your Local Community Online!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Feb 1999 16:19:53 -0500
From: "John Counts" <jcounts@voicenet.com>
Subject: Re: Newbie question
Message-Id: <7a7es0$a98@world6.bellatlantic.net>
More likely you are not opening the file. Check the name and path of the
file and make sure it is getting opened.
>but this program gets stuck at
>$TheLine =$_;
>From the book, that line is supposed to save the line's contents.
>I guess my perl doesn't recognize $_ thing.
>Does anyone have any suggestion for me?
>do i need to upgrade my perl?
>I'm using the one that came with Redhat5.2.
>thank you.
>
>
------------------------------
Date: Sun, 14 Feb 1999 19:28:17 GMT
From: Chad M. Townsend <chad@vcn.net>
Subject: Re: newbie: hitcounter
Message-Id: <7a7849$rti$1@nnrp1.dejanews.com>
Another great resource is http://www.cgi-resources.com, by the same guy.
-chad
In article <36C43751.10B719F7@aug.edu>,
Pavel Aubuchon-Mendoza <paubucho@aug.edu> wrote:
> www.worldwidemart.com/scripts
>
> John wrote:
>
> > I would like to use perl to create a hitcounter for a website. Does
> > anyone know of some documentation or examples that could get me started
> > and/or show me what to look out for?
> >
> > thanks, John
>
> --
> Pavel Aubuchon-Mendoza
> Network Specalist I
> Augusta State University
> (706)737-1484
> pgp: finger csvpra@news.aug.edu
>
>
--------------------------------------------------------
Chad M. Townsend Virtual Community Network, Inc.
Chief Technical Officer Your Local Community Online!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Sun, 14 Feb 1999 12:15:41 -0500
From: "Tasslhoff Burrfoot" <tasslehoff@vt.edu>
Subject: Problem With Output of HTML Headers - Interesting
Message-Id: <7a70dt$htd$1@solaris.cc.vt.edu>
This mail is verbose but it spells out a simple problem plainly so please be
patient. If your newsreader processes HTML you will want to turn the HTML
support off.
The problems occur when I access the script though a webpage. I am running
this script with the newest [as of yesterday] version of ActivePerl.
Specifcally, I am using perlis.dll under NT4 SP4.
I have this script:
#! /usr/local/bin/perl
do PrintHeader();
print "<B>Do you see this?</B>\n";
do PrintFooter();
exit;
sub PrintHeader
{
print "<HTML> ";
print "<HEAD> ";
print "</HEAD> ";
print "<BODY> ";
}
sub PrintFooter
{
print "</BODY>";
print "</HTML>";
}
Which runs but the output HTML does not even resemble what you would expect.
Here is what I get:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
</HEAD>
<BODY></BODY></HTML>
Where did all of that come from? Yes, I am absolutely certain that I am
running the script I think. I experimented and found that if I added to
\n's just after the 'print "<BODY> "' the output changes.
So if I modify the above script's PrintHeader to:
sub PrintHeader
{
print "<HTML> ";
print "<HEAD> ";
print "</HEAD> ";
print "<BODY>\n\n ";
}
I will now get the following output:
<B>Do you see this?</B>
</BODY></HTML>
This obviously came from my script but what happened to the output of
PrintHeader? It seems to be running as changes to its code changes the
operation of the script - but where did the output go? Why did the two \n's
change the whole script's output?
Here is another twist - when I run perl.exe on the scripts from the NT
command line they both work fine. So the problem is in perlis.dll in its
interaction with the webserver.
Thanks in advance for your help.
Brian Alexander
------------------------------
Date: Sun, 14 Feb 1999 17:26:17 GMT
From: tasslehoff@vt.extract.edu (Tasslehoff Burrfoot)
Subject: Re: Problem With Output of HTML Headers - Interesting
Message-Id: <36c706da.161638906@news.vt.edu>
I have played with it some more and have found that a \n before the
<HTML> fixes the problem. I still have no idea why this is doing
this.
Brian Alexander
On Sun, 14 Feb 1999 12:15:41 -0500, "Tasslhoff Burrfoot"
<tasslehoff@vt.edu> wrote:
>This obviously came from my script but what happened to the output of
>PrintHeader? It seems to be running as changes to its code changes the
>operation of the script - but where did the output go? Why did the two \n's
>change the whole script's output?
------------------------------
Date: 14 Feb 1999 17:42:44 GMT
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Problem With Output of HTML Headers - Interesting
Message-Id: <slrn7ce2te.4ht.fl_aggie@PacificOcean.coaps.fsu.edu>
On Sun, 14 Feb 1999 12:15:41 -0500, Tasslhoff Burrfoot
<tasslehoff@vt.edu> wrote:
+ Where did all of that come from? Yes, I am absolutely certain that I am
+ running the script I think. I experimented and found that if I added to
+ \n's just after the 'print "<BODY> "' the output changes.
+
+ I will now get the following output:
+
+ <B>Do you see this?</B>
+ </BODY></HTML>
+
+ This obviously came from my script but what happened to the output of
+ PrintHeader? It seems to be running as changes to its code changes the
+ operation of the script - but where did the output go? Why did the two \n's
+ change the whole script's output?
Sounds like you've got some buffering issues:
Found in perlfaq5
How do I flush/unbuffer a filehandle? Why must I do this?
James
------------------------------
Date: Sun, 14 Feb 1999 11:35:19 -0800
From: Bill Garrett <bgarrett@hamilton.net>
To: ran@netgate.net
Subject: Re: Shell access?
Message-Id: <36C72575.31C32DA@hamilton.net>
So where can I get this mini linux???
ran@netgate.net wrote:
> In <36C6F7C0.3EEEA77C@hamilton.net>, Bill Garrett <bgarrett@hamilton.net> writes:
> >Can I have both win 3.1 and linux installed on my computer.
>
> Yes. And, if all you want is a text-mode shell to play with, your
> best bet might be mini-linux, a minimal system that can be fairly
> easily installed alongside DOS, without even having to repartition your
> hard drive (though you might want to, since mapping linux files onto
> the DOS filesystem causes a bit of a performance hit).
>
> If you want to do a more full-blown installation, skim some of the
> linux newsgroups (especially comp.os.linux.setup), looking for postings
> along the lines of "Wow! That was easy!" to find out who's doing the
> simplest installation kits these days. It varies from release to
> release, as different developers try to out-do one another in ease of
> setup.
>
> Ran
------------------------------
Date: Sun, 14 Feb 1999 14:44:57 -0500
From: "Bill Jones" <bill@fccj.org>
Subject: Re: Shell access?
Message-Id: <36c7272a.0@usenet.fccj.cc.fl.us>
There is a version of Linux which will run DOS and Win 3.1 apps;
Cheers,
-Sneex- :]
______________________________________________________________________
Bill Jones | FCCJ Webmaster | http://www.fccj.org/cgi/mail?webmaster
http://certserver.pgp.com:11371/pks/lookup?op=get&search=0x37EFC00F
http://rs.internic.net/cgi-bin/whois?BJ1936
"Be not the first by whom the new are tried,
nor yet the last to lay the old aside..."
----------
In article <36C6F7C0.3EEEA77C@hamilton.net>, Bill Garrett
<bgarrett@hamilton.net> wrote:
> Can I have both win 3.1 and linux installed on my computer.
> I checked at linux.org and there are so many distributions and other stuff I
don't
> know what I want.
>
------------------------------
Date: Sun, 14 Feb 1999 14:07:46 -0800
From: Yuriy Tenenbaum <yuriyt@ix.netcom.com>
Subject: Simple question of the beginner.
Message-Id: <36C74932.6E3BAD6E@ix.netcom.com>
I am doing my first assignment and everything is fine except the last
question: I have an array of strings. I need to remove the last
character of the second element and add this character 3 times to the
end of the second last element of that array.
I browsed through the textbook and can't find anything on that.
I also know that it should be just a couple of lines of code.
Does anyone know how to accomplish that?
I will appreciate that very, very much.
Sergey
------------------------------
Date: Sun, 14 Feb 1999 14:06:23 -0600
From: "Walter Torres" <tavi@earthling.net>
Subject: Re: The order of form fields that recieve by cgi program
Message-Id: <36c72d2a@news1.us.ibm.net>
Steve Morris wrote in message <79msd0$bfs$1@samba.rahul.net>...
> fanxin@mailcity.com wrote:
>> Hi,there:
>> does here any experts know how to know the original order of html form
>> fields in the submitted html form after these data has been splitted to
>> an associated arrary in perl cgi program?
>> Thanks
>>
>> fan
You will have no way of knowing what order the fields will be coming in.
Use CGI.pm to retrieve and decode the fields and values for you, and it will
all be in a hash with filed name as key and its values.
Walter
------------------------------
Date: Sun, 14 Feb 1999 14:26:15 -0600
From: "BenJamin Prater" <jipes@ispchannel.com>
Subject: Re: The order of form fields that recieve by cgi program
Message-Id: <7a7bgk$2dh$1@remarQ.com>
Walter and Steve,
In fact you can.
Simply ask CGI.pm for param. It will spit out a list of elements in original
order as they occured on the form.
--
BenJamin Prater
Jipes! Interactive Media
Where Marketing and Tech Meet
http://www.jipes.com
Walter Torres <tavi@earthling.net> wrote in message
news:36c72d2a@news1.us.ibm.net...
>Steve Morris wrote in message <79msd0$bfs$1@samba.rahul.net>...
>> fanxin@mailcity.com wrote:
>>> Hi,there:
>>> does here any experts know how to know the original order of html
form
>>> fields in the submitted html form after these data has been splitted to
>>> an associated arrary in perl cgi program?
>>> Thanks
>>>
>>> fan
>
>
>You will have no way of knowing what order the fields will be coming in.
>
>Use CGI.pm to retrieve and decode the fields and values for you, and it
will
>all be in a hash with filed name as key and its values.
>
>Walter
>
>
>
------------------------------
Date: 14 Feb 1999 22:25:52 +0100
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: The order of form fields that recieve by cgi program
Message-Id: <83aeyg65jz.fsf@vcpc.univie.ac.at>
Re: The order of form fields that recieve by cgi
program, BenJamin <jipes@ispchannel.com> said:
BenJamin> Walter and Steve, In fact you can.
BenJamin> Simply ask CGI.pm for param. It will spit
BenJamin> out a list of elements in original order
BenJamin> as they occured on the form.
Bzzzt, please try again...
The field order is *not* sorted. What does
"occured" (sic.) mean? The textual order in the
source of the HTML document? The order in which the
form fields were rendered by a browser? Alphabetic
order?
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien. | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: Sun, 14 Feb 1999 13:42:18 -0800
From: "Steve Shaffer" <mshaff@smtp.ix.netcom.com>
Subject: Web based calendar
Message-Id: <7a7fi3$2iv@sjx-ixn8.ix.netcom.com>
I'm very new to perl / CGI programming etc, so excuse my ignorance.
As a learning exercise, I want to create a very simple web based calendar,
I just want to pick a date, and be able to make an entry. Then redisplay
the calendar showing the new entry.
Does anyone know of a calendar 'widget', or an perl modual that I could use
to help me with this effort.
Thanks for your comments.
Steve Shaffer
mshaff@ix.netcom.com
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 4893
**************************************