1 Contrib Forms Checklist
2 ========================
3 To replace mysql_insert_id with the following changes.
5 Whenever audit is enabled, the GLOBALS['lastidado'] set by the audit
6 can be used for determining lastid, because it stores the
7 correct mysql_insert_id before the audit call
11 if($GLOBALS['lastidado'] > 0)
12 $last_id = $GLOBALS['lastidado'];
14 $last_id = mysql_insert_id($GLOBALS['dbh']);