Re: removing white space revisited

2002-02-18 Thread Briac Pilpré
On Mon, 18 Feb 2002 at 18:48 GMT, David Gilden wrote: > Hi, > > My goal is to clean up the fields submitted from a form and then be > able to use them in other places. > > Do I have to assign my 'cleaned' data to a hash? You can try it by yourself: #!/usr/bin/perl -w use strict; use CGI qw(:c

Re: HTML page seperator or page breaks?

2002-02-18 Thread Briac Pilpré
On Mon, 18 Feb 2002 at 16:44 GMT, Carolyn Bentley wrote: > I need to be able to create a web page that has "page breaks" in it. > I think there might be a way to do this with tables. However I cannot > find any documentation about it. > > Is there anything you might suggest trying? Although

Re: -default for filefield

2002-02-18 Thread Briac Pilpré
On Mon, 18 Feb 2002 at 11:53 GMT, Octavian Rasnita wrote: > I tried to specify the default value for a file field in a form, and I see > that in Internet Explorer it doesn't appear. Nothing is going wrong, browsers generaly don't honor the default value of a . It's mostly for security reason,

Re: Help ...

2002-02-14 Thread Briac Pilpré
On Fri, 15 Feb 2002 at 00:42 GMT, Jason Lamar wrote: > I purchased a "Mail This Page To A Friend" script that I'm doing some > tweaking on, but I can't figure out a particular item in the function that > parses HTML code to be formatted into a standard e-mail message. > ... so that only the Image

Re: Percent printing in CGI...

2002-02-14 Thread Briac Pilpré
On Thu, 14 Feb 2002 at 19:46 GMT, Jerry Everett Jr wrote: > I am having a problem printing percents within my PERL program when I > add in CGI. You have a problem with your parens in the printf function. #!/usr/bin/perl -w use strict; use CGI qw(:html); for my $percent ( 0.5, 5.434, 12.12, 100

Re: redirect script failling

2002-02-13 Thread Briac Pilpré
On Wed, 13 Feb 2002 at 23:48 GMT, David Gilden wrote: > Can someone point why the following is not working? According to the CGI.pm doc (perldoc CGI): The redirect() function redirects the browser to a different URL. If you use redirection like this, you should not print out a header

Re: Perl parameter in html-tag

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 22:54:36 +0100 (MET), Terje Bremnes <[EMAIL PROTECTED]> wrote: > Any ideas here? Do I need to split the $word into an array (vector) in order > to separate URL-links? That's the idea, though the backtick operator can be used in list context, like this: #!/usr/bin/perl -Tw u

Re: Malformed Header

2002-02-12 Thread Briac Pilpré
On Tue, 12 Feb 2002 12:58:23 +, Stephen.Hurley <[EMAIL PROTECTED]> wrote: > Hi, > Not sure if this is entirely a perl problem, but it is certainly > related. I made some minor changes to one of my CGI scripts (to get > the page to include the current date), and Apache started to give me a > 50

Re: ELO/HELO

2002-02-10 Thread Briac Pilpré
On Sat, 9 Feb 2002 19:23:23 -0800, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi all, > Do you have any idea what is ELO and what is HELO? > I sent a message and I saw in the headers from unknown (HELO). > > Thank you for some light. I'm assuming from your last e-mail on the list that you're

Re: The SMTP protocol

2002-02-09 Thread Briac Pilpré
On Sat, 9 Feb 2002 09:54:31 -0800, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Do you know where I can get information about the SMTP protocol? > I read in a module that it is explained in RFC821. > Where can I found this RFC? http://www.google.com/search?q=RFC821 with a bit of luck, you'll fin

Re: Renaming files with Perl

2002-02-08 Thread Briac Pilpré
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

Re: Is there a good CGI.pm tutorial online?

2002-02-03 Thread Briac Pilpré
On Sun, 03 Feb 2002 19:20:07 GMT, Steven Rubin <[EMAIL PROTECTED]> wrote: > Is there a good CGI.pm tutorial online? I am interested in learning > how it works, and how it can benefit me. Curtis Poe's 'Web Programming with Perl' tutorial is pretty good for beginning with CGI. Check it out at: h

Re: validation

2002-02-02 Thread Briac Pilpré
On Sat, 2 Feb 2002 13:05:30 -0500, Al Hospers <[EMAIL PROTECTED]> wrote: > I'm surprised that no one has put together a library of functions to > handle form validation issues. it would seem that this is one of those > things that needs to be done all the time. Have you looked for one? http://s

Re: binmode with graphics, @ARGV, -T switch

2002-01-20 Thread Briac Pilpré
In article , Harvey Quamen wrote: > 1) This script doesn't really "translate" from a jpeg to a PNG, does >it? The $image_type is simply for the header, right? I got confused >because the book says, "So we will provide a high-color, >high-detail PNG

Re: CGI.pm problem

2002-01-17 Thread Briac Pilpré
David Gilden wrote: > Here is what I am trying to do, > $class_to_display = param('kayaking_intro'); > $class_to_display = param('white_water_intro'); > $class_to_display = param('white_water_beyond'); > $class_to_display = param('white_water_rolling'); > > # The way it is writte

Re: Thumbnail images on-the-fly

2002-01-16 Thread Briac Pilpré
Scott R. Godin wrote: > 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. :-) Here are some "Pictures Gallery"-type modules that can be found on CPAN: Apache::Album:

Re: tables in cgi for briac pilpre'

2002-01-15 Thread Briac Pilpré
Nafiseh Saberi wrote (in perl.beginners): > hi. > hope you be fine. > i reply this question,also. > (tables in cgi) > do you know what is the difference between my answer > and yours,or what is the advantages ?? Your answer is probably faster than mine in execution time since you do

Re: Tables in CGI

2002-01-15 Thread Briac Pilpré
In article <02011510194302.01235@gandalf>, Gerry Jones wrote: > To recap: I don't need help with DBI or querying DB's, but with printing the > results into a table. I have two arrays: "@columns" (contains the column > names from the queried table), and "@data" (contains every row from that > ta

Re: Using print

2002-01-14 Thread Briac Pilpré
Evan Panagiotopoulos wrote: > I have a text file and I would like to use the print command. I read the > documentation but I couldn't make heads or tails. > I have the variable containing the string in variable $fields{add}, the text > file in in variable taxfile.dat, and the receiving variable is

Re: Google-script, enhancements

2002-01-09 Thread Briac Pilpré
In article <00c101c1993b$662efc40$b81411d5@pc2002>, Henk Van Ess wrote: > Dear all, > > I'm enhancing the Google-script, and would love to get an OUTPUT like this: > > http://www.google.com/search?q=leuk&as_qdr=m3 > > How do I get the FIXED value &as_qdr=m3 after the VARIABLE q? > > I don't ne

Re: Cookies ...

2002-01-09 Thread Briac Pilpré
Polikarpov Cyrill wrote: > I'm working whith perl but I don't know how to work whith cookies. Give > me please some tips for this one ... A good start would probably be to read the documentation of HTTP::Cookies perldoc HTTP::Cookies or http://search.cpan.org/doc/GAAS/libwww-perl-5.63/lib/H