how to get the values of a <tr>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivendravikramsingh
    New Member
    • Jun 2007
    • 19

    how to get the values of a <tr>

    hello friends,
    i need your ehlp,actually i have a tablbe in my php page,the format is something like this:[code=html]
    <table>
    <tr name="t1" id="t1">
    <td>monu</td><td>23</td>
    </tr>
    <tr name="t2" id="t2">
    <td>monu</td><td>23</td>
    </tr>
    </table>[/code]
    What i want,when i click a row like row "t1" the values of this particuler row,i means to say the value in <td>s of this row is send to some other page(monu,23)
    similarly,when i click the row2 "t2" same function perform.pls help me its urgent
  • gregerly
    Recognized Expert New Member
    • Sep 2006
    • 192

    #2
    Here is what i'm understanding from your post:

    You have a table, and when you click on the contents of the table, you want to go to another page.

    You my friend need the <a> tag. It doesn't get any more basic than this.

    w3schools <a> tag tutorial

    Hope I understood correctly what you were trying to do.

    Greg

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, shivendravikram singh.

      Please use CODE tags when posting source code. See the REPLY GUIDELINES on the right side of the page next time you post.

      Comment

      • kovik
        Recognized Expert Top Contributor
        • Jun 2007
        • 1044

        #4
        How is this question PHP related? Is the table generated dynamically?

        Comment

        Working...