|
function BeforeAdd(&$values)
{
// Parameters:
// $values -
Array object.
// Each field on
the Add form is represented as 'Field name'-'Field value' pair
//**********
Insert a record into another table ************
global $conn;
$strSQLInsert = "insert
into TableName (Field1, Field2) values (Value1, Value2)";
db_exec($strSQLInsert,$conn);
return true;
//return true if
you would like to proceed with the adding new record;
//return false otherwise
} |