Re: Odd select box behaviour

2007-05-02 Thread Jonathan Mangin
- Original Message - From: "Jonathan Mangin" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2007 9:51 AM Subject: Re: Odd select box behaviour > > - Original Message - > From: <[EMAIL PROTECTED]> > To: > Se

Re: Odd select box behaviour

2007-05-02 Thread Jonathan Mangin
- Original Message - From: <[EMAIL PROTECTED]> To: Sent: Tuesday, May 01, 2007 8:21 PM Subject: Odd select box behaviour > This one has me stumped, and it shouldn't. > > I'm trying to validate data from a simple select box: > > > United States > Canada > > > When I do: > > foreac

Re: Trying to Understand An Error Message

2007-02-06 Thread Jonathan Mangin
- Original Message - From: "Akbar Ehsan" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 06, 2007 9:26 AM Subject: Trying to Understand An Error Message Hello, I have Perl/CGI script that work fine but for the fact that it logs a message in the error log file. The message is: Use of

Re: How to Send Form Output to Multiple Mailing Lists

2007-01-11 Thread Jonathan Mangin
Try Email::Send from CPAN. (I'm about 1 mile from you, as crows fly.) --Jon - Original Message - From: "Akbar Ehsan" <[EMAIL PROTECTED]> To: Sent: Thursday, January 11, 2007 3:23 PM Subject: How to Send Form Output to Multiple Mailing Lists Hi, My knowledge of Perl CGI is very limi

Re: Problems with CGI and mod_perl

2006-06-06 Thread Jonathan Mangin
- Original Message - From: "sfantar" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 06, 2006 1:21 PM Subject: Problems with CGI and mod_perl > Hello everyone > > I have started since today learning how to write cgi in Perl with this > doc : http://users.easystreet.com/ovid/cgi_course/le

Combined and

2005-10-21 Thread Jonathan Mangin
Hi all, Don't know where else to ask...sorry. I've seen several pages with constructs where the first appears to be e.g. :) Whomever How is this done?? Thanks, Jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Session security

2004-12-27 Thread Jonathan Mangin
Hi all, I need to implement group memberships for a series of related CGI modules, with approx. 10 groups and 6 auth. levels within each group. I'm now using CGI::Session with a single param of auth_level as a session-expiration flag. I'd like to expand this to a groups mechanism, but I gather ther

Re: Address bar & redirects

2004-11-04 Thread Jonathan Mangin
- Original Message - From: "Chasecreek Systemhouse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2004 10:28 AM Subject: Re: Address bar & redirects >> http://youve-reached-the.endoftheinternet.org/ > > The above URI is a frameset (eugh, icky frames). That is

Re: Address bar & redirects

2004-11-04 Thread Jonathan Mangin
That's not me, man. I'm not using frames or JavaScript. - Original Message - From: "David Dorward" <[EMAIL PROTECTED]> To: "Jonathan Mangin" <[EMAIL PROTECTED]> Cc: "beginners-cgi" <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2

Re: Address bar & redirects

2004-11-04 Thread Jonathan Mangin
- Original Message - From: "Chasecreek Systemhouse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 04, 2004 9:25 AM Subject: Re: Address bar & redirects On Thu, 4 Nov 2004 07:46:13 -0500, Jonathan Mangin <[EMAIL PROTECTED]> wrot

Address bar & redirects

2004-11-04 Thread Jonathan Mangin
Why doesn't my IE address bar reflect successful redirects? Also, does this list have an archive? Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Snooping a POST

2003-12-24 Thread Jonathan Mangin
Network Security for Dummies. - Original Message - From: "zentara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 8:13 AM Subject: Re: Snooping a POST > On Tue, 23 Dec 2003 14:44:11 -0500, [EMAIL PROTECTED] (Jonathan > Mangin) w

Snooping a POST

2003-12-23 Thread Jonathan Mangin
Hey everybody... I'm thinking about encrypting parts of my site (in some fashion), and began with snoop -d elxl0. I expected to see form data in clear text, but didn't. I need to do some serious research, but what's the quick story? If I can't see it, who can, and how? TIA, Jon -- To unsubscri

Passing the hash

2003-12-04 Thread Jonathan Mangin
Hello all... In my example-driven world I find [something like] this in 'CGI Programming with Perl', constructed in main:: if ($CGI->param("Screen3")) { showmeScreen3($CGI); } elsif ($CGI->param("Screen2")) { showmeScreen2($CGI); } else { showmeScreen1($CGI); } This is a pretty old book

Re: What is the best method to test out a script that is spitting info to the httpd logs

2003-11-20 Thread Jonathan Mangin
- Original Message - From: "Ed Christian" <[EMAIL PROTECTED]> To: "Dan Anderson" <[EMAIL PROTECTED]>; "beginners-cgi" <[EMAIL PROTECTED]> Sent: Thursday, November 20, 2003 8:22 AM Subject: RE: What is the best method to test out a script that is spitting info to the httpd logs Dan Anders

RE: Best Token Char For Template

2003-10-11 Thread Jonathan E. Hogue
Use a module... My favorite is HTML::Template, but there are plenty. See http://search.cpan.org/~samtregar/HTML-Template-2.6/Template.pm First Name: Last Name: #!/usr/bin/perl -w use HTML::Template; # open the html template my $template = HTML::Template->new(filename => 'mytemplate.tmpl'

RE: Form creation and parsing

2003-10-10 Thread Jonathan E. Hogue
ROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 7:17 AM To: beginners-cgi Subject: Re: Form creation and parsing Thanks for your hints, I've tried to use the script from Jonathan (I've just received the scripts from zentara), but I got an error in this line: use CGI::FormB

RE: Form creation and parsing

2003-10-09 Thread Jonathan E. Hogue
This will create the form for you, including client side javascript for validation. It will also do the server side validation. It will set itself as the submit, and return a confirmation screen. It's all of 18 lines, that's less than it would take to write the HTML form itself. Look at http://sear

RE: Perl/Linux problem.

2003-09-11 Thread Jonathan E. Hogue
A cgi hello world script must have the headers in it. For example, #!/usr/bin/perl print "Content-Type: Text/HTML\n\n"; print "Hello World"; -Original Message- From: Sara [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 5:37 AM To: beginperl Subject: Perl/Linux problem. I

RE: create log as well as print on screen

2003-08-20 Thread Jonathan E. Hogue
In unix there is a program called tee. It works something like program.pl | tee log.file you just have program.pl write to STDOUT alternatively, in your program, you could just do my $log = "log.file"; open( LOG, ">>log.file" ); print "THING\n"; print LOG "THING\n"; close LOG; ( basically pri

RE: perl script as binary

2003-08-14 Thread Jonathan E. Hogue
I've had some luck with perl2exe in the past. If I remember correctly, you also have to deliver a couple of .dll's with the executable. Can you turn the app into a web app? You might have more luck with that. http://www.indigostar.com/perl2exe.htm -Original Message- From: Sven Bentlage [ma

RE: Perl line breaks

2003-08-14 Thread Jonathan Hogue
2. My first line in the perl program is: #!perl -w (being a Windows-based server, it doesn't require the full path. The -w to warn of errors/mistakes etc.) I think in Windows, -w isn't enough. The #!perl line is ignored in most windows installations/configurations , and the file association is u

Problems with html output

2003-03-26 Thread jonathan . musto
; #print the html print "Content-type: text/html\n\n"; print <<__HTML__; Simple Program User Name = $username UserID = $usernum __HTML__ print <<__HTML__; __HTML__ Jonathan Musto BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 E-mail -

CGI Script - problem opening filehandle

2003-03-25 Thread jonathan . musto
this line i get a blank page returned. Has anyone come across this problem before? Any help would be much appreciated, thanks in advance. Regards, Jonathan Musto BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 E-mail - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public

Members area

2002-07-23 Thread Jonathan
I would like to allow members to manage their accounts on-line. I need a resource that explains each 'security' method, and discusses the pros and cons of each. Do you know of any books or tutorials that do this? Or at least provide a list of the different options?

Re: redirect()

2002-07-14 Thread Jonathan
e redirect(). Do you think the clients browser goes and Posts the form again to the new URL? If this is what is happening, is the solution to use: print "Location: $url\n\n"; with-out printing any headers? Will this work for all browsers? Thanks Jonathan > A common mistake is to

redirect()

2002-07-14 Thread Jonathan
After complaints that my CGI takes too long, I traced it down to the redirect() function. Why does it take so long? Is there an alternative? Jonathan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fw: What is this string type? How to play with?

2002-07-11 Thread Jonathan
What Connie is looking for is something that translates an ordinary string to a "urlencoded" string, I don't know what does that but I got around the problem myself by using the modules: LWP::UserAgent; HTTP::Request::Common; Jonathan - Original Message - From: <[EM

Re: DBI in CGI's

2002-07-09 Thread Jonathan Gines
i'm not familiar w/ DBI and MySQL, but I do use DBD::Sybase and those drivers are on the client. i guess you might need to install the necessary MySQL DBI modules on the web server. do a syntax check of your CGI script with "-c" before running your CGI program, and maybe print out the vars in

CGI to emulate HTML Post

2002-07-07 Thread Jonathan
I would like my CGI to send info to a different CGI, that is really expecting a html to post to it the info. How do I do that? Jonathan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: What editor for Perl do you recommend?

2002-06-24 Thread Jonathan Gines
definitely go with emacs and use "perl-mode" then "font-lock-mode" if you want syntax highlighting. At 03:51 PM 6/24/02 +, Francesco Scaglioni wrote: >From: "Octavian Rasnita" <[EMAIL PROTECTED]> >Subject: What editor for Perl do you recommend? >Date: Mon, 24 Jun 2002 08:06:40 +0300 > > > H

Re: Example for "uniq"

2002-06-11 Thread Jonathan Gines
good catch. my mistake. i wrote this snippet before going to a quick meeting. At 11:31 PM 6/11/02 +0200, Janek Schleicher wrote: >Jonathan Gines wrote at Tue, 11 Jun 2002 17:29:38 +0200: > > > ... > > # read data > > # > > $foo{$data]++; #count data. new valu

Re: Example for "uniq"

2002-06-11 Thread Jonathan Gines
when you're reading the data, create a hash such that each value is incremented when more than one instance is read. what happens is that key value pairs are "values and counts' of each value. my %foo = (); # read data # $foo{$data]++; #count data. new values = 1, previously read values a

RE: cache

2002-02-01 Thread Curtis, Jonathan
I ran into this problem on a script I was working on this week too... The no cache meta tag isn't supported by IE 4 or 5, I'm not sure about 6... something about the way the file is buffered, IE automatically caches it. There are work arounds to use the no cache method with explorer, but I haven'

RE: How To Display Browser Headers

2002-01-31 Thread Curtis, Jonathan
This may not be the best answer, cause I'm just learning CGI/Perl myself... but I've ran into that same error in the last couple days, and this is what I do to fix it... Make sure you have "use CGI qw(:cgi);" included in your script, and after you've done whatever you need to do with the HTTP h

help!

2002-01-29 Thread Curtis, Jonathan
line. The flatfile is read by line into @data, then splits each field of @data by comma into @cheese as it searches for the correct login name so values in cheese would look like $cheese[0] = jcurtis $cheese[1] = Jonathan Curtis $cheese[2] = <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

Re: search and replace

2002-01-19 Thread Jonathan E. Paton
Replace all we've matched # with $1 /g; # Option: Global replace Take care, Jonathan Paton __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Jonathan E. Paton
{ /^()$/ ? $_=$1 : undef $_; } The ? : is a special trinary operator which effectively does: if (...) {...} else {...} (...) ? {...} : {...} Take care, Jonathan Paton __ Do You Yahoo!? Everything you'll ever nee

Re: my stupit script...

2001-12-17 Thread Jonathan E. Paton
ments failure of parts of the system software, and a cracker may use it to exploit any security holes that may occur when this happens. In summary... take care and have a good day :) Jonathan Paton __ Do You Yahoo!? Everything you'll ever need o

Re: map

2001-12-12 Thread Jonathan E. Paton
> I' d like to know if it' s possible to print the number > of occurences of letter "o" inside a variable string, > using perl function map. $qty = $string =~ tr/o/o/; Shortest and seemingly the fastest solution. Jonathan Paton

Re: 'SafePerl'?

2001-12-04 Thread Jonathan E. Paton
bly looking for the "Safe" module, or taint mode. The safe module is for running untrusted scripts, taint is for stopping most unchecked input being used for system related commands. perldoc perlsec perldoc Safe Alternatively try either CPAN or 'Perl in

Re: Fw: PLEEEEEEEASE READ!!!

2001-12-02 Thread Jonathan Gardner
at best cut him off. Jonathan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]