Re: [cgiapp] Hidden variable or Query String or Form for run mode access?

2004-11-30 Thread Sean Davis
On Nov 29, 2004, at 11:05 PM, Kasturirangan Rangaswamy wrote: Hi, I am sequentially accessing 4 run modes. At each run mode, I give the user a screen, perform some validations and move on to the next mode(screen). The screens are displayed using HTML::Template I am declaring a

Re: [cgiapp] Hidden variable or Query String or Form for run mode access?

2004-11-30 Thread Michael Peters
Sean Davis wrote: On Nov 29, 2004, at 11:05 PM, Kasturirangan Rangaswamy wrote: I am declaring a hidden HTML variable in each screen as follows INPUT TYPE=HIDDEN NAME='rm' VALUE='TMPL_VAR NAME='run_mode_value'' and am setting it's value in my Perl subroutine. Now, I actually

Re: [cgiapp] Hidden variable or Query String or Form for run mode access?

2004-11-30 Thread Kasturirangan Rangaswamy
Hi, Thanks for all your responses. I agree I am making this easy thing look difficult. I really am not able to give a rational explanation for why I did not want to use forms except maybe I wanted to satisfy my curiosity of whether this could be done without either approach. In any case,

Re: [cgiapp] dbh-quote error I can't see

2004-11-30 Thread Ron Savage
On Mon, 29 Nov 2004 14:08:27 -0500, Cees Hek wrote: Hi Cees, et al  Create a class for your table:  package MyDB::Authorize;  use base qw(Class::DBI::mysql);  __PACKAGE__-set_up_table('authorize');  1;  And now for the code to update the database:  unless ( $error ) {  my $authorize =

Re: [cgiapp] Sending file to the browser...

2004-11-30 Thread Ron Savage
On Mon, 29 Nov 2004 15:28:08 -0500, Joel Gwynn wrote: Hi Joel, et al  $self-header_props(-type= 'application/vnd.ms-excel',  -attachment= 'foo.xls');  Works for us. Another for the wiki recipe book.  I think the header_add syntax would be:  $self-header_add(  -content_disposition = 'inline;

[cgiapp] Now a problem with returning validation results - SOLVED

2004-11-30 Thread Kasturirangan Rangaswamy
Hi, I had a longish post earlier about how my missing/invalid default error descriptors were not showing up on my HTML::Template form while using CGI::Application::ValidateRM. Well turns out the problem was while using the quote 'qw' function. Though on my post the qw// had only one