PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Sep 29, 2020 2:46 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: dynamic fields question
PostPosted: Sun Aug 17, 2014 5:57 pm 
Offline
Forum Commoner

Joined: Fri Sep 02, 2005 9:53 pm
Posts: 52
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..


Top
 Profile  
 
PostPosted: Sun Aug 17, 2014 6:03 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
...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.


Top
 Profile  
 
PostPosted: Sun Aug 17, 2014 6:07 pm 
Offline
Forum Commoner

Joined: Fri Sep 02, 2005 9:53 pm
Posts: 52
ya..i just realize it..

i need to grab data from forms to insert in DB


Top
 Profile  
 
PostPosted: Sun Aug 17, 2014 7:00 pm 
Offline
Spammer :|
User avatar

Joined: Wed Oct 15, 2008 2:35 am
Posts: 6617
Location: WA, USA
So... PHP then.

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group