Hello, I have one existing table for guests, with information such as name, passport number and such.
I want to make a new table for sales, and want to make it so that when a client is chosen from the existing table, certain fields are populated in the new table, such as passport number.
I am doing this with php and ajax.
Could someone point me in the general direction for where I should be looking to do this?