This topic is locked

function is before delete send simple e-mail.

3/16/2012 9:52:20 AM
PHPRunner General questions
ncreveld author

Hi, any one an idea why this is giving "Undefined variable: values" error"
This is the code used.

// ** Send simple email ****

$email="creveld@017.net.il";

$from="--rbegin--Stenen-archief--rend--";

$msg="--rbegin--Record--rend-- code: = ". $values["code"];

$subject="--rbegin--Record delted by: --rend--".$_SESSION["UserID"];

$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];
// Place event code here.

// Use "Add Action" button to add code snippets.

return true;

C
cgphp 3/16/2012

Fixed. More info here: http://xlinesoft.com/phprunner/docs/before_record_deleted.htm



// ********** Send simple email ************

$email="creveld@017.net.il";

$from="--rbegin--Stenen-archief--rend--";

$msg="--rbegin--Record--rend-- code: = ".$deleted_values["code"];

$subject="--rbegin--Record delted by: --rend--".$_SESSION["UserID"];

$ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, 'from'=>$from));

if(!$ret["mailed"])

echo $ret["message"];
// Place event code here.

// Use "Add Action" button to add code snippets.

return true;