A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearPOSTing an arbitrary number of records from an HTML form - page 1
User InfoPosts
POSTing an arbitrary number of records from an HTML form#1
I(m making a web page in which I have a list of products, along with a field next to each product in which a customer is meant to enter the quantity they want to order. The list of products is generated from a database and therefore the number of products isn(t known. Is there a way of POSTing the quantity of each product ordered along with the IDs (from the database) of each product?

Thanks

Ben

posted date: 2009-04-15 03:57:00


Re: POSTing an arbitrary number of records from an HTML form#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-15 03:57:01


Re: POSTing an arbitrary number of records from an HTML form#3
The correct method is for the database to track the number of elements it emits and store a hidden field.If you can(t do this, you can yourself build some javascript into the page which, upon submit, will count the number of elements in the page and set the value of a hidden field in the form to hold this value.

posted date: 2009-04-15 04:00:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.