1
What I need to do is simple, but as I am a beginner in the art of PHP and Javascript, I am hitting myself a little.
What I need to do is the following. I have an order screen, where I will register the order data, until then, okay. Just below, I will insert the products in the order, and they will be shown below to be saved as soon as the order is saved.
What I wish to do is to select a product in a combobox
, click on the add product button, add this product in an array or something that is valuable and display this array in a table just below. But I would like to do this without updating the page.
Does anyone have any idea or example of how to do this?
Ariel, just to clarify: when you say table you mean table in database right? you know what AJAX is? Do you have any javascript framework (jQuery, Mootools, etc) or do you want to do it with pure JS? Answer/explain these 3 questions better, gather the code you already have and you will have a very splendid answer I promise :)
– Sergio
It’s actually an HTML table. What I’m doing is an order screen. I select the product in a combo, click the "Insert in Order" button, and the product will appear in a table below. When I save the request, I will scan this table, whose data will be in an array (or something worth it) and insert it into the database.
– Ariel Lobe