Forums

How do I check the last id of a saved row .

jamesghansen 27 Mar, 2010
To someone who will help.

I have a form setup to save to the database, and I would like to get the id of the record.
I need this in order to save this data to another table.
GreyHead 27 Mar, 2010
Hi jamesghansen,

Try this in the OnSubmit After box
<?php
$id = $MyForm->tablerow["jos_chronoforms_my_form_name"]->cf_id;
?>
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger