Consider the following code:
while($row=mysql_fetch_assoc($result)){
echo
'<tr> ';
echo '<td><a href="#?id='.$row['id'].'" class="dep_link"><img src="images/icn_edit.png" title="Edit"></a> <a href="#"><img src="images/icn_trash.png" title="Trash"></a></td>';
In my php form, i have created a jquery dialog link such that when the user clicks the 'icn_edit.png' image , a new iframe is loaded with fields for update. i want to pass the 'id' variable from the link of that particular html table row to the division of html where the iframe is created so that i can use it as key for querying database. apparently, the iframe loads but the 'id' is not displayed in the test textfield.
how can i post the variable/value ie. the 'id'. the code works when i replace the '#' with an external file but not when i intend to pass it to a html div.