![]() |
Sergey Kornilov admin 11/22/2006 |
Dave, function BeforeAdd(&$values) { // Parameters: // $values - Array object. // Each field on the Add form represented as 'Field name'-'Field value' pair //** Send email with new data **** $email=$values["EmailAddress"]; $message=""; $subject="New data record"; foreach($values as $field=>$value) $message.= $field." : ".$value."\r\n"; mail($email, $subject, $message); return true; // return true if you like to proceed with adding new record // return false in other case } |
D
|
dwilliams author 11/23/2006 |
Sergey, |