I'm needing to send multiple variables to a jquery dialog form so that users can edit that entry. The entries are shown as a html table on the page and the data is loaded from a mysql database. I want to pass all of the entries from a row to the jquery dialog form so that they can edit them and resubmit it to the database. I'm really at a loss here and I don't even know where to start. I've seen people talking about the .data() function in jquery, but i'm not sure how best to send that data to the popup form.
Here is an example of the form. I used to just send the data to an update_contact.php which would pull the users record and place it into a form. But I like the jquery dialog form for keeping it on the same page.
<table width="600" cellpadding="4" class="tickets">
<tr style="background-color:#736F6E;">
<th width="225" style="padding-top: 5px; padding-bottom: 5px;">
<b><a class="title">Name</a></b>
</th>
<th width="225" style="padding-top: 5px; padding-bottom: 5px;">
<b><a class="title">Title</a></b>
</th>
<th width="150" style="padding-top: 5px; padding-bottom: 5px;">
<b><a class="title">Work Phone</a></b>
</th>
<th width="150" style="padding-top: 5px; padding-bottom: 5px;">
<b><a class="title">Actions</a></b>
</th>
</tr>
<tr style="background-color:#FFFFFF">
<td style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
<a href="#" class="clickTip38">Contact #1</a>
</td>
<td style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
Support Team Lead
</td>
<td style="padding-top: 5px; padding-bottom: 5px; padding-left: 10px;">
123-456-7890
</td>
<td>
<center><a href="update_contact.php?search=38" class="clickTip" title="Edit Contact"><img src="/img/user_edit.png" border="0"></a><a href="#1#38" class="display-dialog" title="Delete Contact"><img src="/img/user_delete.png" border="0"></a><a href="vcard.php?id=38" class="clickTip" title="Download vCard"><img src="/img/vcard.png" border="0"></a></center>
</td>
</tr>
</table>