T
transpar3nt
I am creating a small app for my business that creates sales
estimates. It will let the user enter the product information
(description, model, price, etc.) for as many products as they want
and then generates a printable estimate page using PHP.
When the user needs more than 1 item, they click "add item" and it
"creates" a new input table by changing it's style to not be hidden
anymore. It works great but requires me to have a pre-set number of
input boxes, therefor a limited number of products. I would like to
make it so javascript automatically generates each table as needed and
then posts the information that is entered, and nothing more (right
now, if someone enters info for 2 products, it still posts 20
fields... and it is limited to 20 products too).
I hope I was clear on this. I am sort of new to JavaScript, mostly
familiar with server-side like PHP.
Thanks for any help!
estimates. It will let the user enter the product information
(description, model, price, etc.) for as many products as they want
and then generates a printable estimate page using PHP.
When the user needs more than 1 item, they click "add item" and it
"creates" a new input table by changing it's style to not be hidden
anymore. It works great but requires me to have a pre-set number of
input boxes, therefor a limited number of products. I would like to
make it so javascript automatically generates each table as needed and
then posts the information that is entered, and nothing more (right
now, if someone enters info for 2 products, it still posts 20
fields... and it is limited to 20 products too).
I hope I was clear on this. I am sort of new to JavaScript, mostly
familiar with server-side like PHP.
Thanks for any help!