Forums

db table id set to 0 after db save

t3living 07 Oct, 2016
i have a sequence of code steps

before HTML Render
custom code:
<?php
$form->data['reg_id'] = JRequest::getInt('reg_id','','get');
?>


then HTML Render

On Submit
db save with update conditions
<?php 
return array("reg_id"=>$form->data['reg_id']);
?>


redirect with params
chronoform="MORA-Menu"
reg_id=reg_id


but the value of $form->data['reg_id'] =0 after the db save. why?
This topic is locked and no more replies can be posted.