rspai — 2012-12-08T04:55:02-05:00 — #1
I have a table named "Inventory"
It has a table named "StockMaster"
StockMaster has two columns : "StockID" and "StockItem" ("StockItem" has name of the Stock item)
I want to create a Form with a few input fields for date, quantity of the stock item, Inward/Outward etc, and also having a field with the StockItems from the StockMaster table.
Although the Form is populated with the StockItem (Item name), on form submission the corresponding StockIds should get sent to the script that is processing the submitted data.
I tried a couple of scripts without luck. Please help.
Thanks in advance,
rspai — 2012-12-08T04:56:05-05:00 — #2
In the previous post, please read "Inventory" as the database name and not Table name.
starlion — 2012-12-08T08:46:17-05:00 — #3
So... give your <option> tags the value of the stockID's, but put the names in the display.