Debian, Apache, Perl, CGI.pm, ErrorDocument, and POST

2011-04-02 Thread David Christensen
beginners-cgi: I have a Debian 6.0, Apache 2.2.16, Perl 5.10.1, and CGI.pm 3.43 machine with a folder containing: $ cat .htaccess Options +ExecCGI AddHandler cgi-script pl ErrorDocument 404 /cgi.pm-get-post-errordocument/printcgi.pl $ cat index.html direct

Re: Using CGI.pm to set up textfields and then parse them

2009-01-07 Thread marys
On Jan 5, 8:33 pm, g...@lazymountain.com (Greg Jetter) wrote: > On Monday 05 January 2009 2:22:08 pm marys wrote: > > > > > > > Does anyone know how to set up a large number of textfields for data > > input and then parse them conveniently?  In the CGI.pm book it

Re: Using CGI.pm to set up textfields and then parse them

2009-01-05 Thread Greg Jetter
On Monday 05 January 2009 2:22:08 pm marys wrote: > Does anyone know how to set up a large number of textfields for data > input and then parse them conveniently? In the CGI.pm book it shows > how to use the form element 'textfield' like so: > > #!/usr/bin/pe

Using CGI.pm to set up textfields and then parse them

2009-01-05 Thread marys
Does anyone know how to set up a large number of textfields for data input and then parse them conveniently? In the CGI.pm book it shows how to use the form element 'textfield' like so: #!/usr/bin/perl -wT use CGI::Carp qw(fatalsToBrowser); use CGI ':standard'; use CGI::Pre

Re: using cgi.pm to create and interpret textboxes

2008-11-18 Thread marys
On Nov 11, 10:46 am, [EMAIL PROTECTED] (Dermot Paikkos) wrote: > Hi > > > > > -Original Message- > > From: marys [mailto:[EMAIL PROTECTED] > > Sent: 11 November 2008 11:20 > > To: [EMAIL PROTECTED] > > Subject: using cgi.pm to create and interp

RE: using cgi.pm to create and interpret textboxes

2008-11-12 Thread Dermot Paikkos
Hi > -Original Message- > From: marys [mailto:[EMAIL PROTECTED] > Sent: 11 November 2008 11:20 > To: beginners-cgi@perl.org > Subject: using cgi.pm to create and interpret textboxes > > Hello: > Can anyone tell me how to use CGI.pm's 'textfield' fu

Re: using cgi.pm to create and interpret textboxes

2008-11-11 Thread Matthew Whipple
On Tue, 2008-11-11 at 03:19 -0800, marys wrote: > Hello: > Can anyone tell me how to use CGI.pm's 'textfield' function to set up > a form with a lot of fill-in fields and then parse them? I tried to > read three values from input boxes but the output seems to be the name > of the textbox and not

using cgi.pm to create and interpret textboxes

2008-11-11 Thread marys
Hello: Can anyone tell me how to use CGI.pm's 'textfield' function to set up a form with a lot of fill-in fields and then parse them? I tried to read three values from input boxes but the output seems to be the name of the textbox and not its value. Here are two scripts: (1) a.cgi: #!/usr/bin/

Re: cgi.pm form save to .html

2007-01-10 Thread Sean Davis
On Tuesday 09 January 2007 22:22, Chris Henderson wrote: > I'm trying to make a form using cgi.pm the output of which will be > saved to a .html file. But the variables are not parsing correctly. If > I put 3 names in 3 different places they all appear together instead > of each

cgi.pm form save to .html

2007-01-09 Thread Chris Henderson
I'm trying to make a form using cgi.pm the output of which will be saved to a .html file. But the variables are not parsing correctly. If I put 3 names in 3 different places they all appear together instead of each appearing on each individual section. Here's my code: #!/usr/bin/per

Re: Problems opening files from CGI.pm program in Windows

2006-01-24 Thread Jim Riddles
Mary, This appears to be a simple permissions error. When running a cgi script you are running with the web server's credentials, so your log file is not writeable by that user. When run locally, you are using the credentials that you are logged on as, so the script has access. This is no

Re: Problems opening files from CGI.pm program in Windows

2006-01-23 Thread Dr.Ruud
Mary Anderson: > open(LOG,">>.\guestbook.err")|| Simply try '>>./guestbook.err'. BTW, whitepace is cheap nowadays: my $logfile = './guestbook.err'; open( LOG, '>>', $logfile ) or die "Couldn't open log ($logfile) $!"; -- Grtz, Ruud -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Bob Showalter
Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carp

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Paul Archer
3:43pm, Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carp

Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Mary Anderson
Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>

Re: problems with CGI.pm upload feature

2005-09-20 Thread Scott R. Godin
Charles K. Clarkson wrote: Scott R. Godin 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 test to be c

RE: problems with CGI.pm upload feature

2005-09-19 Thread Charles K. Clarkson
Scott R. Godin 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 test to be certain that @file actually ho

Re: problems with CGI.pm upload feature

2005-09-19 Thread Scott R. Godin
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 all the tim

Re: problems with CGI.pm upload feature

2005-09-18 Thread Scott R. Godin
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

Re: problems with CGI.pm upload feature

2005-09-17 Thread Wiggins d'Anconia
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

Re: problems with CGI.pm upload feature

2005-09-17 Thread Bill Stephenson
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 is supposed to return a filehandle ? (it doesn&

Re: problems with CGI.pm upload feature

2005-09-17 Thread Scott R. Godin
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

Re: problems with CGI.pm upload feature

2005-09-16 Thread Wiggins d'Anconia
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 not)

problems with CGI.pm upload feature

2005-09-16 Thread Scott R. Godin
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-l

Re: CGI.PM and IF statment....

2005-09-10 Thread Ovid
--- David Gilden <[EMAIL PROTECTED]> wrote: > my $mt = param('message type'); > > if (length($mt) == 0) { > print redirect("/pages/error.html"); > exit; > } > > This should only redirect it someone has not made a 'selection' > what am I missing? Unless you send bad HTML or someone's messin

RE: CGI.PM and IF statment....

2005-09-10 Thread Charles K. Clarkson
David Gilden wrote: : The if statement below does not seem to work as expected// : : Given in the HTML: : Don't use white space in form field names. : and in the perl: : : #!/usr/local/bin/perl : use CGI qw/:standard/; : use strict; : : #and other stuff... :

Re: CGI.PM and IF statment....

2005-09-10 Thread David Dorward
On Sat, 2005-09-10 at 01:44 -0500, David Gilden wrote: > > Choose type message > my $mt = param('message type'); > if (length($mt) == 0) { > This should only redirect it someone has not made a 'selection' > what am I missing? If the user truly has not made a selection, the $mt will be unde

CGI.PM and IF statment....

2005-09-09 Thread David Gilden
The if statement below does not seem to work as expected// Given in the HTML: Choose type message Comment about a recent performance or recording Concert or Event Booking inquiry Personal message and in the perl: #!/usr/local/bin/perl use CGI qw/:standard/; use strict; #and other stuff...

RE: CGI.pm internals question

2005-07-14 Thread Bob Showalter
Scott R. Godin wrote: [snip] > So if I were to say, override it thusly: > > package CGI; > > sub STORE { > my $self = shift; > my $tag = shift; > my $vals = shift; > #my @vals = index($vals,"\0")!=-1 ? split("\0",$vals) : $vals; > my @vals = @{$vals}; > $self->param

Re: CGI.pm internals question

2005-07-14 Thread Scott R. Godin
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 hash interf

RE: CGI.pm internals question

2005-07-13 Thread Bob Showalter
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 hash interface returned by th

CGI.pm internals question

2005-07-13 Thread Scott R. Godin
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

Re: Formatting Labels with CGI.pm

2005-03-26 Thread Bill Stephenson
On Mar 25, 2005, at 11:55 AM, Lawrence Statton wrote: The simplest solution is to temporarily turn off autoEscape Indeed it is. I'll try and remember this, again. On Mar 25, 2005, at 11:55 AM, Charles K. Clarkson wrote: I'm guessing that you have something like this somewhere. use CGI qw/:stand

Re: Formatting Labels with CGI.pm

2005-03-25 Thread Lawrence Statton
> I'm trying to format the text used in my labels for a radio box group > created with CGI.pm... Among other things, I've tried: > > I know there must be a way to do this and any help to get me over this > hump would be much appreciated. > The simplest solutio

RE: Formatting Labels with CGI.pm

2005-03-25 Thread Charles K. Clarkson
Bill Stephenson <mailto:[EMAIL PROTECTED]> wrote: : I'm trying to format the text used in my labels for a radio box group : created with CGI.pm... Among other things, I've tried: : I'm guessing that you have something like this somewhere. use CGI qw/:standard/; my $Q

Formatting Labels with CGI.pm

2005-03-25 Thread Bill Stephenson
I'm trying to format the text used in my labels for a radio box group created with CGI.pm... Among other things, I've tried: # code my $payPal_label= b(Pay Online with PayPal)," (Use this for instant access)"; my $check_label=qq~ Send a Check in the Mail.

Problem writing JavaScript method with CGI.pm

2005-03-03 Thread Tyson Sommer
I am trying to use CGI.pm to build a button for a form that has an onClick method defined that's supposed to make the page reload itself. Here's the code I'm using (assume strictures and warnings, and that $q = new CGI;): Current working code: - su

Re: CGI.pm program

2004-11-19 Thread Bill Stephenson
On Nov 19, 2004, at 3:49 PM, Lewick, Taylor wrote: I have a CGI.pm program that works from the command line, but when I try and view it from the browser, the error_log shows, malformed header from script. Bad header= /web/cgi-bin/bb_test/bb_test5.p I don't have these problems when I jus

CGI.pm program

2004-11-19 Thread Lewick, Taylor
I have a CGI.pm program that works from the command line, but when I try and view it from the browser, the error_log shows, malformed header from script. Bad header=http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI.pm info on the web

2004-10-26 Thread Chris Devers
On Tue, 26 Oct 2004, Adamiec, Larry wrote: > This link may be of help to some people. > > http://www.samag.com/documents/s=9408/ur0411l/ I bet it would go over even better on the CGI list :-) -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-10 Thread Bruce Alderson
Robert Page IV wrote: Considering I am not parsing HTML, I am actually trying to 'generate' the text formatting I want in a HTML page, there is no need for a HTMl parser that I see. There are quite a few modules that do this too, like Markdown, Textism, and some of the wiki-markup tools. I've w

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-10 Thread Chad A Gard
On Sep 9, 2004, at 11:02 PM, Robert Page IV wrote: I am familiar with . What is the difference between and ? In XHTML, all elements need a close. By doing , it will work regardless of whether your DTD is for an HTML variant or XHTML. I didn't know which you were using, so played it safe. Ch

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Chris Devers
On Thu, 9 Sep 2004, Robert Page IV wrote: I am familiar with . What is the difference between and ? It's an XHTML / XML -ism. In strict XML markup -- of which XHTML is one example -- all tags have to be balanced. For HTML, this means that tags that it used to be okay to leave unbalanced -- para

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Robert Page IV
I am familiar with . What is the difference between and ? Robert Page On Sep 9, 2004, at 9:36 AM, Chad A Gard wrote: On Sep 8, 2004, at 9:40 PM, Robert Page IV wrote: Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' val

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Robert Page IV
Considering I am not parsing HTML, I am actually trying to 'generate' the text formatting I want in a HTML page, there is no need for a HTMl parser that I see. Robert On Sep 9, 2004, at 7:30 PM, Gunnar Hjalmarsson wrote: Chris Devers wrote: On Thu, 9 Sep 2004, Gunnar Hjalmarsson wrote: I can't se

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Gunnar Hjalmarsson
Chris Devers wrote: On Thu, 9 Sep 2004, Gunnar Hjalmarsson wrote: I can't see what this has to do with HTML parsing. The immediate problem has nothing to do with parsing, but it seemed like some of the suggestions given were starting to go in that direction. Maybe. The reason for my remark is that

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Chris Devers
On Thu, 9 Sep 2004, Gunnar Hjalmarsson wrote: I can't see what this has to do with HTML parsing. The immediate problem has nothing to do with parsing, but it seemed like some of the suggestions given were starting to go in that direction. Unless I was just misreading things... -- Chris Devers --

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Gunnar Hjalmarsson
Chris Devers wrote: I suspect you probably didn't mean to do either of these, but rather: $details =~ s#\n#\n#g; Which should portably add a break tag to the end of each source line. HTML parsing is a real bear to get right. For a limited problem like this, mucking around with regular expressio

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Chad A Gard
On Sep 9, 2004, at 9:57 AM, Chris Devers wrote: This is why I like to use something other than a slash when trying to match html or xml: $details =~ s#\r##g; Also, did you really mean to replace '\r' with '' ? That will, depending on the file encoding, either [a] do nothing, or [b] strip ou

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Chris Devers
On Thu, 9 Sep 2004, Chad A Gard wrote: Try this: $details = param('details'); $details =~ s/\r//g; Careful now... $ perl -e '$details = "foo"; $details =~ s/\r//g;' Search pattern not terminated at -e line 1. $ The '/' in '' needs to be escaped, or the regex is unbalanced. This is why I

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Chad A Gard
On Sep 8, 2004, at 9:40 PM, Robert Page IV wrote: Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' values entered into the textarea via $summary = param('executive summary') and $details = param('details'). For Debug pu

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Robert Page IV
Gunnar: Thanks. I read this before in Lincoln Stein's CGI book but it did not register the first time. Thanks for the help as this solves my current issues. Robert Page On Sep 9, 2004, at 5:31 AM, Gunnar Hjalmarsson wrote: Robert Page IV wrote: Sean Davis wrote: White space (including carriage re

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-09 Thread Gunnar Hjalmarsson
Robert Page IV wrote: Sean Davis wrote: White space (including carriage returns) is ignored by HTML, generally. Try surrounding your text output by the tag (preformatted text). I added pre('executive summary') and pre('details') to the save_weekly() subroutine and this worked! Thank you very much

RE: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread John Sharpe
-Original Message- From: Robert Page IV [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 03:19 To: Sean Davis Cc: [EMAIL PROTECTED] Subject: Re: CGI.pm : Handling Carriage Returns from textarea() On Sep 6, 2004, at 8:52 PM, Sean Davis wrote: > White space (including carri

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Randal L. Schwartz
> "Robert" == Robert Page IV <[EMAIL PROTECTED]> writes: Robert> Woops! XMP is deprecated with HTMl 4.01. Robert> Sorry for the extra message. XMP has been deprecated for over half the age of the web. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Woops! XMP is deprecated with HTMl 4.01. Sorry for the extra message. Robert Page On Sep 8, 2004, at 10:37 PM, Robert Page IV wrote: I found a solution to PRE. It is XMP.. From http://www.frc.ri.cmu.edu/~mcm/tags.html, " ... Like "PRE" but HTML tags aren't interpreted (except for )" Robert Pag

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
I found a solution to PRE. It is XMP.. From http://www.frc.ri.cmu.edu/~mcm/tags.html, " ... Like "PRE" but HTML tags aren't interpreted (except for )" Robert Page On Sep 8, 2004, at 10:21 PM, Robert Page IV wrote: Sean: I added pre('executive summary') and pre('details') to the save_weekly() s

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Sean: I added pre('executive summary') and pre('details') to the save_weekly() subroutine and this worked! Thank you very much. I am weary about the fact that HTML tags are permitted inside PRE. Apparently, &, < and > must either not be present or handled somehow according to http://www.htmlhelp.

Re: Correction! CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' values entered into the textarea via $summary = param('executive summary') and $details = param('details'). For Debug purposes, I print $summary and $detail. I may make t

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
Gunnar: I have attached the CGI script: weekly.pl. The subroutine save_weekly() captures the 'executive summary' and 'details' values entered into the textarea via $summary = param('executive summary') and $details = param('details'). For Debug purposes, I print $summary and $detail. I may make t

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-08 Thread Robert Page IV
On Sep 6, 2004, at 8:52 PM, Sean Davis wrote: White space (including carriage returns) is ignored by HTML, generally. Try surrounding your text output by the tag (preformatted text). Does this do what you want? Do I do this within the textarea() form? This does not seem practical if other wa

RE: CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Charles K. Clarkson
Do you have an example to demonstrate the issue you are having? Are you using CGI.pm to process form fields or another solution? Did you set the "wrap" attribute of the textarea tag? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail:

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Gunnar Hjalmarsson
Robert Page IV wrote: I am trying to write a simple weekly entry CGI script and I am trying to capture a the string returned from a textarea, assign the value to either a variable or array and output it to a web page with print or printf or sprintf/print. When I do this, apparently carriage returns

Re: CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Sean Davis
White space (including carriage returns) is ignored by HTML, generally. Try surrounding your text output by the tag (preformatted text). Does this do what you want? Sean On 9/6/04 20:10, "Robert Page IV" <[EMAIL PROTECTED]> wrote: > I am trying to write a simple weekly entry CGI script and I

CGI.pm : Handling Carriage Returns from textarea()

2004-09-06 Thread Robert Page IV
I am trying to write a simple weekly entry CGI script and I am trying to capture a the string returned from a textarea, assign the value to either a variable or array and output it to a web page with print or printf or sprintf/print. When I do this, apparently carriage returns are either not cap

Re: redirecting and setting cookies with CGI.pm

2004-06-13 Thread Andrew Gaffney
Andrew Gaffney wrote: Is there a way to use redirect() *and* set cookies like with header()? Nevermind, I just added "-status=>'302 Found', -Location=>'http://somesite.com/somepage.html'" to my header() call. -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To uns

redirecting and setting cookies with CGI.pm

2004-06-13 Thread Andrew Gaffney
Is there a way to use redirect() *and* set cookies like with header()? -- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: POST and GET and CGI.pm

2004-06-08 Thread Wiggins d Anconia
le while now and I've always used the param() method > in > CGI.pm and it is working for both GETs and POSTs. I'm wondering if I'm > missing something and if there are times when using the CGI.pm param() > method is not advised. Thanks. > You're not the one mi

POST and GET and CGI.pm

2004-06-08 Thread Scott Stearns
always used the param() method in CGI.pm and it is working for both GETs and POSTs. I'm wondering if I'm missing something and if there are times when using the CGI.pm param() method is not advised. Thanks. -Scott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: print MAIL "TO: [EMAIL PROTECTED]"; print MAIL "From: $name <$email>\n"; print MAIL "Subject: $subject\n\n"; The From is Hard wired so I donât understand you mention below. In your orginal post it was evaluated as a PARAM CGI input -- therefore it is not hard-wired

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread Ugly Virgin
On Tue, 2004-02-24 at 15:52 -0600, David Gilden wrote: > Sx- Jones. > > Yes, this script can be hijacked =/ Sorry. > > > > > > > > print MAIL "TO: [EMAIL PROTECTED]"; > > > print MAIL "From: $name <$email>\n"; > > > print MAIL "Subject: $subject\n\n"; > > The From is Hard wired s

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread David Gilden
Sx- Jones. > Yes, this script can be hijacked =/ Sorry. > > > > print MAIL "TO: [EMAIL PROTECTED]"; > > print MAIL "From: $name <$email>\n"; > > print MAIL "Subject: $subject\n\n"; The From is Hard wired so I donât understand you mention below. print MAIL "From: $name <$email

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: They are going with this one :) I wanted to specifically address this FormMail issue separately - so there is no miscommunications. All FormMail programs and their derivatives are BAD -- worse then what you wanted to write in my opi

RE: CGI.pm unsecure / dangerous ?

2004-02-24 Thread Bob Showalter
nsecure or dangerous about CGI.pm. It's your implementation that's problematic. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI.pm unsecure / dangerous ?

2004-02-24 Thread WC -Sx- Jones
David Gilden wrote: Is there away some could hijack my script, if so how, or is this sys. adm. not living in the real world? Yes, this script can be hijacked =/ Sorry. print MAIL "TO: [EMAIL PROTECTED]"; print MAIL "From: $name <$email>\n"; print MAIL "Subject: $subject\n\n"; Her

CGI.pm unsecure / dangerous ?

2004-02-24 Thread David Gilden
I just had blow up with a sys. adm. who said my script (see below) is potentialy unsecure and dangerous and therefor unacceptable. They are going with this one :) note the line from my script: print MAIL "TO: [EMAIL PROTECTED]"; Is there away some

RE: CGI.pm *with* a templating system?

2004-01-23 Thread Silent Zed
> Is it possible to use CGI.pm in conjunction with a templating system? I think somebody may have already posted this module, but it seems it was overlooked. Take some time out, and look at this: http://html-template.sourceforge.net/ <--(Highly Recommended) Regards, Keith Szlamp if (

RE: CGI.pm *with* a templating system?

2004-01-21 Thread Kenneth W. Craft MCP
-Original Message- From: Dan Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 2:30 PM To: Andrew Gaffney Cc: R. Bryant; [EMAIL PROTECTED] Subject: Re: CGI.pm *with* a templating system? On Wed, 2004-01-21 at 01:45, Andrew Gaffney wrote: > Dan Anderson wrote: >

Re: CGI.pm *with* a templating system?

2004-01-21 Thread Dan Anderson
On Wed, 2004-01-21 at 01:45, Andrew Gaffney wrote: > Dan Anderson wrote: > > On Tue, 2004-01-13 at 16:05, R. Bryant wrote: > > > >>Hi List, > >> > >>Is it possible to use CGI.pm in conjunction with a templating system? > > > > > > W

Re: CGI.pm *with* a templating system?

2004-01-20 Thread Andrew Gaffney
Dan Anderson wrote: On Tue, 2004-01-13 at 16:05, R. Bryant wrote: Hi List, Is it possible to use CGI.pm in conjunction with a templating system? Whenever you send out anything from your CGI object you'll do something like this, correct? my $cgi = CGI->new; print $cgi->header;

Re: CGI.pm *with* a templating system?

2004-01-20 Thread Dan Anderson
On Tue, 2004-01-13 at 16:05, R. Bryant wrote: > Hi List, > > Is it possible to use CGI.pm in conjunction with a templating system? Whenever you send out anything from your CGI object you'll do something like this, correct? my $cgi = CGI->new; print $cgi->header; Well you&#x

Re: CGI.pm *with* a templating system?

2004-01-13 Thread Wiggins d Anconia
> Hi List, > > Is it possible to use CGI.pm in conjunction with a templating system? > > For example, I'd like to send the header from CGI.pm, but use a > templating system for the bulk of the page. And which templating system > do users here recommend. I've heard

Re: CGI.pm *with* a templating system?

2004-01-13 Thread Barbara Lindsey
works fine and I am pretty satisfied with the results, but I would also be interested in hearing how other people have approached this. R. Bryant wrote: Hi List, Is it possible to use CGI.pm in conjunction with a templating system? For example, I'd like to send the header from CGI.pm, bu

CGI.pm *with* a templating system?

2004-01-13 Thread R. Bryant
Hi List, Is it possible to use CGI.pm in conjunction with a templating system? For example, I'd like to send the header from CGI.pm, but use a templating system for the bulk of the page. And which templating system do users here recommend. I've heard of Template::Toolkit and HTML::Tem

Re: CGI.pm question

2003-12-03 Thread drieux
On Dec 3, 2003, at 7:41 AM, Greg Zartman wrote: [..] Maybe this is just my inexperience showing here, but I was under the impression that when you attached a module (i.e. use CGI.pm), it was compiled with the rest of your script. If this is incorrect? [..] Yes, and sorta. Those parts of the

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
> > What resources are you concerned about? It appears most of CGI.pm is > > autoloaded at first usage, which should help matters of CPU and memory > > usage. > > Maybe this is just my inexperience showing here, but I was under the > impression that when you

Re: CGI.pm question

2003-12-03 Thread Greg Zartman
What resources are you concerned about? It appears most of CGI.pm is autoloaded at first usage, which should help matters of CPU and memory usage. Maybe this is just my inexperience showing here, but I was under the impression that when you attached a module (i.e. use CGI.pm), it was compiled

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
> > This is one of the things CGI::Safe does, it is really just a wrapper > > around CGI.pm but it allows you to do it without having to edit the > > source, or to set it in every script, which is actually pretty nice. > > Yes, inspection of the CGI::Safe source indeed

Re: CGI.pm question

2003-12-03 Thread Greg Zartman
This is one of the things CGI::Safe does, it is really just a wrapper around CGI.pm but it allows you to do it without having to edit the source, or to set it in every script, which is actually pretty nice. Yes, inspection of the CGI::Safe source indeed shows this. Bottom line, I was trying to

Re: CGI.pm question

2003-12-03 Thread Wiggins d Anconia
CGI::Safe CGI subclass to turn-off uploads, does > >this shut off uploads in general for the cgi session or is it required > >that one use CGI form objects to take advantage of this security feature? > > It will only affect the script you are using it in. > If you want to turn

Re: CGI.pm question

2003-12-02 Thread Wiggins d'Anconia
e ability to handle such content on the other end, there are multiple places where this can and may be handled. So the important thing is to understand where in the processing of an HTTP request the CGI.pm fits, and hence what kind of "security" this provides. So having said that, T

CGI.pm question

2003-12-02 Thread Greg Zartman
I'm relatively inexperienced at using this module as I've always preferred coding my own cgi functions. A question: If one were to use the CGI::Safe CGI subclass to turn-off uploads, does this shut off uploads in general for the cgi session or is it required that one use CGI form objects to ta

radio buttons :: CGI.pm

2003-09-27 Thread David Gilden
Good evening, How would I write the following with having to create %sort_order HASH? Thanks, Dave -- FT Worth, Tx snip %sort_order = ( 0 => ' Newest --> Oldest ', 1 => ' Oldest --> Newest ', ); print radio_group( -name=> 'database_order', -values => [

Re: HTML headers with CGI.pm

2003-09-25 Thread Shaun Fryer
> ### > # Start HTML OUT > ### > print header; > print start_html( -title => $title ); > print qq|\n|; > > How do I move the Pragam inside the ... The tag should be declared inside start_html() as follows. print header, start_html(-ti

Re: HTML headers with CGI.pm

2003-09-24 Thread Todd W.
"David Gilden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Having some issues with cgi.pm > Here is my PERL: > > ### > # Start HTML OUT > ### > print header; > print start_html(

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread Nestor Florez
Thanks -Original Message- From: "Randal L. Schwartz" <[EMAIL PROTECTED]> Sent: Sep 24, 2003 9:23 AM To: Nestor Florez <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], Drieux <[EMAIL PROTECTED]> Subject: Re: CGI.pm > 2.98 breaks CGI::Carp? >>>>&g

HTML headers with CGI.pm

2003-09-24 Thread David Gilden
Hello, Having some issues with cgi.pm Here is my PERL: ### # Start HTML OUT ### print header; print start_html( -title => $title ); print qq|\n|; and here is the output: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http:/

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread drieux
On Wednesday, Sep 24, 2003, at 09:23 US/Pacific, Randal L. Schwartz wrote: [..] www.tpj.com - the Perl Journal, formerly a print quarterly, then bundled with SysAdmin, is now back as an online monthly. I have a column there, taken over from "brian d foy", who is currently in Iraq under military

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread Randal L. Schwartz
> "Nestor" == Nestor Florez <[EMAIL PROTECTED]> writes: Nestor> Randall, Nestor> Sorry, but what is TPJ ? www.tpj.com - the Perl Journal, formerly a print quarterly, then bundled with SysAdmin, is now back as an online monthly. I have a column there, taken over from "brian d foy", who is cur

Re: CGI.pm > 2.98 breaks CGI::Carp?

2003-09-24 Thread Nestor Florez
Randall, Sorry, but what is TPJ ? Thanks, Nestor :-) -Original Message- From: "Randal L. Schwartz" <[EMAIL PROTECTED]> Sent: Sep 24, 2003 4:06 AM To: [EMAIL PROTECTED], Drieux <[EMAIL PROTECTED]> Subject: Re: CGI.pm > 2.98 breaks CGI::Carp? >>>>&g

  1   2   3   >