I would like to redirect to an error page if a credit card fails verification. I am using the following code in the On submit - before sending email section.
<?php
global $cf_AUTHNET_response_code;
if ($cf_AUTHNET_response_code != 'Approved') {
$emails[0]->enabled = 0;
$mainframe->redirect('http://www.colvinrunpto.org/content/view/153/153');
}
?>
This produces the error:
Fatal error: Call to undefined method mosMainFrame::redirect() ...
Any ideas why redirect is undefined?
Thanks, Sue
<?php
global $cf_AUTHNET_response_code;
if ($cf_AUTHNET_response_code != 'Approved') {
$emails[0]->enabled = 0;
$mainframe->redirect('http://www.colvinrunpto.org/content/view/153/153');
}
?>
This produces the error:
Fatal error: Call to undefined method mosMainFrame::redirect() ...
Any ideas why redirect is undefined?
Thanks, Sue