I am working with a form that shows treatment history of a patient in a tabular format and it displays date,time,treatment amount. one td contains a view button.
<td align='left' width='90px'><input type='button' class='btn_class' id=\"".$row['ipd_pat_trt_id']."\" value='view'/></td>
the view button contains treatment_id (field from treatment table) value as its id .
Now what i want that when a user clicks on view button it should open a popup window and pass the treatment_id value to the popup window. And the popup window should display all the record from treatment table('select * from' is ok), based on the treatment_id value.
Any one can help me please..
Thanks in advance.