that error will occur if the data assist include file is not attached, your page should have code similar to:
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
make sure this code is included on the page and is before the Insert Record behavior.
to attach a php page to your thread, please compress it into a zip archive and send the zip file.