I have this problem,on the same form,i want to get the id from saved value. i already make some example on JS Fiddle
JS Fiddle :
https://jsfiddle.net/8a79wch7/
Detailed Process :
1.Input Value on Form 1-3.
2.Save Value to database and get the auto incremented ID
3.Click Next,and use the ID from previous saved value (this is the question i want to ask).
Any Tips for doing this ?
This will give you the last insert ID
$this->db->insert_id();
Just redirect the user with correct URL by getting the LAST_INSERT_ID
redirect('controller/method/LAST_INSERT_ID', 'refresh');
The URL might Look something like this
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.