For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2005 > Form information









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Form information
Chris Payne

2005-05-26, 8:56 pm

Hi there everyone,



I'm pulling data from my MySQL DB with PHP 4.2, and I have a quantity box
for multiple items, what I'm not sure of is this:



Say there are 8 products and they choose 3 by entering a quantity into each
box, I can display that no problem BUT how can I capture the ID of each
product at the same time for each quantity? This is really an important
thing for me to have to do, so I can associate each quantity with the
product id.



BTW, I use quantity[] as the name in the form, so it's an array, I just need
to know how to add an extra item called productid to it so I can carry that
info over too :-)



Thank you for your help, it's driving me nuts.



Chris


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com