Is it possible in an onSaved function to run a require_once or include e.g.
function Showdone($id)
{
// send out email to authoriser
require_once('actions/emailauthoriser.php');
// send out email to originator
require_once('actions/emailoriginator.php');
header("location: ../index.php") ;
}
?>
I cannot get the formhandler to recognise the require_once( or an include(. It just seems to bypass them, The purpose of this is to send an email of the form data to the person who completed it and carry out some further actions. Its easier to separate the code in to another script but I cannot get this to work - what am I doing wrong?
Is it possible in an onSaved function to run a require_once or include e.g.
function Showdone($id)
{
// send out email to authoriser
require_once('actions/emailauthoriser.php');
// send out email to originator
require_once('actions/emailoriginator.php');
header("location: ../index.php") ;
}
?>
I cannot get the formhandler to recognise the require_once( or an include(. It just seems to bypass them, The purpose of this is to send an email of the form data to the person who completed it and carry out some further actions. Its easier to separate the code in to another script but I cannot get this to work - what am I doing wrong?
[edit] this occurs even of the header is removed.
Ta