473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Pls suggest me - Query on submitting dynamically creating rows

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
Sep 15 '06 #1
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
Sep 18 '06 #2
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
Sep 18 '06 #3
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
Sep 21 '06 #4
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
Sep 21 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

13
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....
9
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...
1
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...
1
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...
6
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...
4
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...
8
siridyal
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...
4
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...
1
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.