Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How get unique variable/array names in a loop

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am currently making a shopping site for a college project using PHP and MySQL.

I have a generated page of the stock in the database in PHP and each item of stock has a inputbox next to it for the quantity of how many you want to buy. The problem is that all the quantity boxes get the same name as they are in a loop.

Does any one know how to give these input boxes unique names that I can then call later on in the next page of the site etc.

As variables or arrays

Any help would be much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top