Subject: | Multiple probs in cgi_ex_2.cgi |
I've needed to make a few changes to get the example to run.
-use base CGI::Ex::App;
+use base 'CGI::Ex::App';
- push @$path, 'userinfo';
+$self->append_path('userinfo');
+$self->set_ready_validate(0);
Now in order to make the form labels visible, I've needed to comment out
the colors:
- color => ['#ccf', '#aaf'],
+ #color => ['#ccf', '#aaf'],
I just get black bars otherwise.
Finally I get this crash when I submit the form (without JS):
[Tue Jun 13 11:51:34 2006] [error] [client 192.168.58.1] Step userinfo:
Missing field key during normal validation at
/usr/lib/perl5/site_perl/5.8.5/CGI/Ex/Validate.pm line 145., referer:
http://192.168.58.128/cgi-bin/index.cgi
[Tue Jun 13 11:51:34 2006] [error] [client 192.168.58.1] Premature end
of script headers: index.cgi, referer:
http://192.168.58.128/cgi-bin/index.cgi