You are here: Place Order and Multidimensional Arrays « PHP Programming Language « IT news, forums, messages
Place Order and Multidimensional Arrays

Posted by Peter Brown on 07/12/05 19:16

Hello,

The problem I am having is this:

I would like an array to have three fields

(item_id, item_unit, item_qty) - this I can do from prior postings.

Now the Order entry form is something like

Line # ITEM # ITEM DESCRIPTION ITEM UNIT ITEM QTY.

I create the string to put in the form - only ITEM QTY is an input text.
The rest have been pulled from the database.

As I loop through the mysql query I populate the three fields in the
array - obviously item_qty is 0 at this point as it has not been submitted.

I don't know what to put for the input type=\"text\" line using the
array I have created so on submit item_qty has been populated and ready
to be processed so the array fields can be put in an order table.

So on submit the array looks like

(1234, CS, 3)
(5678, EA, 2) and so on...

Using a print within the submit conditional I see

1234 CS 0 - the zero does not change no matter what I enter for ITEM QTY.

Any help/pointers much appreciated,

Peter Brown

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация