CodeIgniter Forums
how to pass vlaues - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how to pass vlaues (/showthread.php?tid=63940)



how to pass vlaues - nady - 12-25-2015

Hallo everybody
i am creating a manufacturing form by this form i am getting all of user information and insert it into db successfully but while inserting i want also insert user id and user email(which is not displaying into form field).
NOTE: user id and email already kept while registration process after that user moved on manufacturing form.

Thanks
Looking forward
Nady


RE: how to pass vlaues - skunkbad - 12-25-2015

It sounds like you need to store the user ID in a session or cookie so that when the manufacturing form is submitted that you can get the values and add them to the insert.


RE: how to pass vlaues - Php - 12-25-2015

@nady,
Your Question is sound like incomplete.
Where you want to insert user id and user email?
Session?
Cookie?
Any other table?
Code:
last_insert_id()



RE: how to pass vlaues - pmbaldha - 12-27-2015

When user signed in system, you should store user id and user email sore in session if user user is authenticated. When you insert in database table, make associative array to insert data which holds user id and user email as well as form data.