I am having a user logged in section in my project and i uses session for storing the datas of the particular user. In the logged in section i am having a form named business.php and the table named tbl_business to store the data from the form. But i need to pre-populate some particular fields in the form business.php from another table named tbl_user which contains some common datas such as address, name etc. Both these are in a session.
How can i implement it? i didn’t tried nothing, need some suggestions. Thanks in advance.
You can just echo the contents in the value attribute of the input, e.g.
Please note that you should escape your output data, to prevent XSS / tag breaks, something like: