![]() |
| ||
| PHP/JavaScript Problem... 1 Attachment(s) Hi, I am trying to develop a battery order form. Here is the problem. User has to enter the "Current Stock". There is a "Allowed Stock" for each row. What I want to accomplish is when a user puts in the "Current Stock", I want the "Request Stock" to appear after the value changes. Request Stock = Allowed Stock - Current Stock I managed to code the request stock but now the problem is storing those values in an array and passing them on in the POST. I dont know how to do that. Attached is the code snippets... //Script function How do I allocate the "value" in the second TD? Attached is an image of the page. What I want to do is capture CurrentStock and Request Stock into an array and send it to next page. What modifications do I need to make in the requestItems script? |
| ||
| Re: PHP/JavaScript Problem... Quote:
<input name="item[]" /> PHP will parse the "item" parameter into an indexed array available in: $_POST['item'] |
| All times are GMT -4. The time now is 4:44 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC