button to add php filled dropdown list then submit

I am trying to make a form to add inventory to a mysql database. The trouble im having is that i have a dropdown list of products populated by the database. i have one line that shows the dropdown box then prompts the user for the quantity then hits submit. this works fine, but sometimes we need to enter in multiple products and quantities, so i wanted to add a plus sign or button to add another duplicate line with the product dropdown and input for quantity, then i want to be able to submit both lines into inventory. here is the small test version i am working with, i hope you guys can help!

[php]

Product: testthis Quantity: <?php error_reporting (E_ALL ^ E_NOTICE); $value=$_POST['one']; if ($value!=null) { echo "

Product:Test2 Quantity: "; $value1=$_POST['product1']; $value2=$_POST['product2']; $value3=$_POST['quantity1']; $value4=$_POST['quantity2']; } ?> [/php]

You should probably do this with JavaScript. There’s not a lot I can do to help aside from doing the code for you.

I dont need you to do it for me. Thanks for giving it a shot.

I think your best option is using JQuery since your are pulling your information from a db

Thanks for your help guys! =)

Sponsor our Newsletter | Privacy Policy | Terms of Service