As far as i understand you looking to create an order form in one table then items in other table.
When you submit order form then insert all values in order table and put one unique id.
Using that unique id(using session you can use this unique id on all pages this will help you to retrieve or store data in items table) you can create multiple items in item tables. Like you add five item for this order then ordernumber for all these will be same(mean unique id).