I search my database and get a few records in a table in my html/php page.how can i select a row to copy its data in the coresponding textboxes of a form in the same page?

Since you want this to happen client side, you will need to use javascript/jQuery. The idea here is that you copy the contents from the row and fill those textboxes with those values.

In the table you display, you'll need to include soemthing that will identify the row so that when you click on it, your javascript/jQuery function will be able to read the elements and their values in that row and extract the data.

For example, if you can identify the row...using jQuery

$(this).find('td').each (function() {
  // get the values and copy them to the form input elemnets.
});  
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.