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 2178
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.
Value selected is used as the 'where' clause of the 2nd query.
If $site is a single word, the 2nd query works like a charm.
If $site is more than one word (has spaces), the query returns a null
|
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 a triangle. Like this member A -> B->C
A give his appartment to B. B gives his appartment to C and finally
C gives his appartment to A
Soo my query looks for matching parameters like rooms, location, size
|
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 the table
dynamically using JavaScript (using DOM), and the problem is those
created bby DOM are not
following style sheet rules applicable for table rows and cells. But the
rows created from within
|
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
regards
somaskarthic
|
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 object. My problem is
that I would like to create the objects dynamically but I can't figure out
how to do it
How would I go about dynamically creating the required objects so that I
could be using anywhere from 2 - 10 etc. ?
| |
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 flat file.
Ideally I would like to be able to just select the Last 2 Columns of
the Crosstab query as inputs to the Select query WITHOUT having to go
in month after month and manually change it...
I may be asking a bit much here but is there a...
|
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 the customer browse (from a dynamically created drop down list - which i've done) the items by furniture class, and then have the query results limited to 26 items per page, in two columns using DIVs. The CSS for the DIVs is taken care of, as is 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 while and it
seems it's not possible because the row that gets added with each
click won't get recreated after a post back. After all the reading it
seems that any dynamically created controls must be created in the
Init event to be recreated after...
|
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 set text boxes and labels inside the table rows. I then added a button. All of these are done through code.
The problem that i am having is i can get the value from a text box with resides inside the first panel (out side of panel that is...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |