Create entry from php…

Hi there !

Is it possible to create a form entry from php ?

Is there a php api ?

Thanks,

Guillaume.

You can take a look at and use the create() function in formidable/classes/models/FrmEntry.php. Here's a related post that may also be helpful:
http://formidablepro.com/help-desk/storing-data-in-formidable-from-a-non-formidable-form/

Thanks Stephanie,

Is there anything I can do to avoid the "
<script type="text/javascript">
jQuery(document).ready(function($){
jQuery.ajax({type:"POST",url:"http://www.mywebsite.fr/index.php?plugin=formidable",
data:"controller=entries&frm_action=ajax_set_cookie&entry_id=17&form_id=9"
});
});
</script>
" return ?

Yes, in your code add:
if(!defined('DOING_AJAX'))
define('DOING_AJAX', true);

Topic closed.