<?php foreach ($data['ACTION_DATA']['messages'] as $msg) { ?>
<form>
<table>
<tr><td>Name:</td><td id="name"><?php echo $msg['name']; ?> </td></tr>
<tr><td>Telephone Number:</td><td id="tp"><?php echo $msg['tp_number']; ?></td></tr>
<tr><td>ID:</td><td id="id"><?php echo $msg['id']; ?> </td></tr>
<tr><td colspan="2"><input type="button" id="sub_button" onclick="show_popup()" value="View"></td></tr>
</table>
</form>
<?php }; ?>
I used above code sample to display my page content. I want to get values according to instance block. and display them in popup window when click on the "View" button without re-load the page. pleace help me. thanks.