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
4 2161
Hi
Can any one shower your ideas ?
-somaskarthic
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
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
Hi
Pls post your replies
-somaskarthic
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
Hi
-somaskarthic
You just give the same name and different id for each elements what ever ur dynamicaly created.
then only u can acces the elements using the id and post the elements using name of the elements
best of luck
Sign in to post your reply or Sign up for a free account.
Similar topics
by: dogu |
last post by:
Noob alert.
Code is below.
File is saved as a .php.
What I'm trying to do:
User uses 'select' box drop down list to pick a value.
Value ($site) is derived from a db query. This works fine....
|
by: majsen |
last post by:
Hi, I have problem running this query. It will time out for me...
My database are small just about 200 members.
I have a site for swaping appartments (rental). my query should look
for match
in...
|
by: Raghuram Banda |
last post by:
Hi all,
I've created a table with Table Header and the table may or may not
contain any rows initially.
I've included a .css file in <head> section of my HTML script and I'm
creating rows to...
|
by: somaskarthic |
last post by:
Hi
I submitted query regarding submitting dynamically generated elements..
pls read the post with the subject : submitting dynamically generated elements.. pls suggest
Hope you reply soon...
|
by: RSH |
last post by:
Hi,
i have a situation where I need to dynamically create objects in a loop. My
question surrounds intantiation naming in such a scenerio.
Below is a snippet that is basically hardcoding each...
|
by: m.wanstall |
last post by:
I have a crosstab query that compiles data for Months of the year. I
have a stacked select query on top of that crosstab query that uses
the latest 2 months data and exports it to a fixed length...
|
by: siridyal |
last post by:
I have a wholesale website that i'm working on that shows hundreds of items that are updated from time to time. These items are kept in a mysql database with several tables.
I want to let the...
|
by: mohaaron |
last post by:
I can think of a lot of reasons why this might need to be done but as
far as I can tell it's not possible. I've been looking for a way to
add HtmlTableRows to a table using a button click for a...
|
by: semomaniz |
last post by:
I have a form where i have created the form dynamically. First i manually added a panel control to the web page. Then i added another panel dynamically and inside this panel i created tables. I have...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |