When I do:
On line 34 of "simple_get.cgi"
34 if( $query->param("textvar") ) {
35 `/bin/echo "proc: submittted" >>/tmp/http.log`;
Instead of:
34 if ( $form->submitted ) {
35 `/bin/echo "proc: submittted" >>/tmp/http.log`; # We never get
here!!!
The "if" condition is true!
-George
On 5/25/11 3:04 AM, Carl Franks wrote:
First, the yml file: simple.yml
======================
---
auto_fieldset: 1
elements:
- type: Text
name: textvar
And last, the processing CGI file: simple_get.cgi
======================
27 $form->indicator("submit");
indicator('submit') tells process() that a form must have a value for
the field 'submit'.
Your form config doesn't have a 'submit' field/button.
So $form->submitted() will always be false.
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu