[cgiapp] Error while redirecting

2004-09-03 Thread pktm
Hello! I want to write a simple feedback-form. So I decided to use these run-modes: $self-run_modes([qw(showForm validate showErrorForm sendMail showSuccess)]); To switch between the runmodes (e.g. if there is invalid input given to the form) I use a simple little sub _redir: sub _redir {

Re: [cgiapp] Error while redirecting

2004-09-03 Thread Stephen Howard
try submitting the form with a method=POST rather than the default method=GET. It's more appropriate for input that may contain newlines, and won't muck up your query string. pktm wrote: Hello! I want to write a simple feedback-form. So I decided to use these run-modes:

[cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Michael Peters
hello all, I'm trying to find a way to pass multiple search paths either to TMPL_PATH or tmpl_path in my base class and then have all my child classes be able to access it. The problem is that C::A will wrap whatever value is in 'tmpl_path' in [] thus creating an array of arrays if it's an

Re: [cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Michael Peters
I don't think that splitting on ':' in load_tmpl is the best way to go about this.. however I do think that HTML::Template should split on ':'. This would make it easy to add multiple paths using the $ENV{HTML_TEMPLATE_ROOT} (which could be set in the httpd.conf). I do however think that

Re: [cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Michael Peters
pktm wrote: I would be happy to have an interface to load_tmpl like H::T, too. But how can we realisize that (so that you may use the old way, too)? If it would be possible to copy the H::T-construktor, we would be able to get Templates from filehandles and all those sources. Wolud be better,

Re: [cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Nathan L . Walls
On Sep 3, 2004, at 2:02 PM, Kleindenst, Fred wrote: I don't work on Macs currently, but won't using a : as a seperator conflict with the standard dir seperator :: on Mac? Fred; It's ':' that separates directories on HFS file systems. So, you can't name a file/directory with ':' inside of Mac OS

Re: [cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Michael Peters
Nathan L.Walls wrote: On Sep 3, 2004, at 2:02 PM, Kleindenst, Fred wrote: I don't work on Macs currently, but won't using a : as a seperator conflict with the standard dir seperator :: on Mac? Fred; It's ':' that separates directories on HFS file systems. So, you can't name a file/directory

Re: [cgiapp] setting multiple tmpl_path's

2004-09-03 Thread Ron Savage
On Fri, 3 Sep 2004 09:04:19 -0700 (PDT), Bill Catlan wrote: Hi Bill I needed the same thing ... haven't submitted a patch yet ... below splits string paths separated by ':' : Of course, under DOS (aka Windows), colon can be used as in C:\Some\Path. So don't use colon, please. -- Ron Savage,