Hi
I posted query about dynamically generating php code.
Sorry for the inconvenience . I didn't given you the php code. Its just javascript code which dynamically create rows on button click event. I'm not using javascript to get data from database. I'm fetching this using php code. I used square brackets to declare it as array.
Hope you understand my problem. Or else , i explain here clearly be patience to read this.
In my design i'm having a row
-----------------------------------------------------------------------------------------------------------------
|selectbox1 selectbox2 chkbox1 chkbox2 ... chkbox7 selectbox3 selectbox4 |
-----------------------------------------------------------------------------------------------------------------
----------------------- --------------------
| Save and Add | | Save Button |
---------------------- -------------------
Initially on pageload , only one row is available. User can select some values
in the selectbox. All the selectboxes submit the form call self php page in onchange event. If a value is changed in one selectbox , values in the other selectboxes also changed. These values are retrieved from postgresql database. Similarly all checkboxes has to submit the form and call self php page and the row values are updated. If save button is clicked , i'm storing this row values in to the postgres database. If 'Save and Add' button is clicked the page is (self php page) submitted , row values are stored to the database . Now the page should display the previously added rows with same set of data and one new row for further updation.
I hope , now you understand my requirement. I'm struggling with getting the submitted values ? I don't how to implement this ?
Please guide me the better way to start this on javascript and php side .
Hope you reply soon
Thanks
somaskarthic
I posted query about dynamically generating php code.
Sorry for the inconvenience . I didn't given you the php code. Its just javascript code which dynamically create rows on button click event. I'm not using javascript to get data from database. I'm fetching this using php code. I used square brackets to declare it as array.
Hope you understand my problem. Or else , i explain here clearly be patience to read this.
In my design i'm having a row
-----------------------------------------------------------------------------------------------------------------
|selectbox1 selectbox2 chkbox1 chkbox2 ... chkbox7 selectbox3 selectbox4 |
-----------------------------------------------------------------------------------------------------------------
----------------------- --------------------
| Save and Add | | Save Button |
---------------------- -------------------
Initially on pageload , only one row is available. User can select some values
in the selectbox. All the selectboxes submit the form call self php page in onchange event. If a value is changed in one selectbox , values in the other selectboxes also changed. These values are retrieved from postgresql database. Similarly all checkboxes has to submit the form and call self php page and the row values are updated. If save button is clicked , i'm storing this row values in to the postgres database. If 'Save and Add' button is clicked the page is (self php page) submitted , row values are stored to the database . Now the page should display the previously added rows with same set of data and one new row for further updation.
I hope , now you understand my requirement. I'm struggling with getting the submitted values ? I don't how to implement this ?
Please guide me the better way to start this on javascript and php side .
Hope you reply soon
Thanks
somaskarthic
Comment