Page 1 of 1

dynamic fields question

Posted: Sun Aug 17, 2014 5:57 pm
by techker
Hey guys im doing a litle POS system for my body's store and was wondering a few things.

so im doing an auto suggest box so it can lookup UPC and add to invoice.

so i was looking up some dynamic tutorials but was jammed on the how to read from dynamic fields?

so lets say i added 5 products,so five fields.but they all have as input name product[] so how can i get the info from the fields and show them in my print invoice..

Re: dynamic fields question

Posted: Sun Aug 17, 2014 6:03 pm
by requinix
...In PHP? Or Javascript? I thought you were going to ask about getting auto-suggest stuff working with a lot of inputs, but it's something about the print invoice which sounds like something you do in PHP.

Re: dynamic fields question

Posted: Sun Aug 17, 2014 6:07 pm
by techker
ya..i just realize it..

i need to grab data from forms to insert in DB

Re: dynamic fields question

Posted: Sun Aug 17, 2014 7:00 pm
by requinix
So... PHP then.

$_POST["product"] will be an array. Use the array however is easiest for you.