Pls suggest me - Query on submitting dynamically creating rows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somaskarthic
    New Member
    • Aug 2006
    • 60

    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
  • somaskarthic
    New Member
    • Aug 2006
    • 60

    #2
    Hi

    Can any one shower your ideas ?

    -somaskarthic

    Originally posted by 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

    Comment

    • somaskarthic
      New Member
      • Aug 2006
      • 60

      #3
      submitting dynamically generated elements.. pls suggest

      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

      Comment

      • somaskarthic
        New Member
        • Aug 2006
        • 60

        #4
        Hi

        Pls post your replies

        -somaskarthic

        Originally posted by 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

        Comment

        • prasannakrish
          New Member
          • Sep 2006
          • 1

          #5
          Originally posted by 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

          Comment

          Working...