2 Oct 04:31
[FormBuilder] Newbie Redirect Question
Steve Schwarz <agilitynerd <at> gmail.com>
2006-10-02 02:31:01 GMT
2006-10-02 02:31:01 GMT
Hi
I'm just learning to use FormBuilder and the order.cgi example in the perldoc shows to do a redirect as follows:
# Check for valid order
if ($form-> submitted eq 'Cancel') {
# redirect them to the homepage
print $form->cgi->redirect ('/');
exit;
}
if ($form-> submitted eq 'Cancel') {
# redirect them to the homepage
print $form->cgi->redirect ('/');
exit;
}
But $form->cgi doesn't seem to be valid:
[Sun Oct 01 21:14:05 2006] [error] [client 127.0.0.1] [FormBuilder] Warning: Possible field access via $form->cgi() - see 'fieldsubs' option
[Sun Oct 01 21:14:05 2006] [error] [client 127.0.0.1] Can't call method "redirect" on an undefined value
[Sun Oct 01 21:14:05 2006] [error] [client 127.0.0.1] [FormBuilder] Warning: Possible field access via $form->cgi() - see 'fieldsubs' option
[Sun Oct 01 21:14:05 2006] [error] [client 127.0.0.1] Can't call method "redirect" on an undefined value
Any assistance would be appreciated.
Steve
_______________________________________________ FBusers mailing list FBusers <at> formbuilder.org http://www.formbuilder.org/mailman/listinfo/fbusers
RSS Feed