<?php
$db =& JFactory::getDBO();
$id = JRequest::getInt('id');
$qry = "SELECT * FROM #__chronoforms_Memberform WHERE cf_id = '{$id}'";
$db->setQuery($qry);
$row = $db->loadObject();

$name = $row->firstname . ' ' . $row->lastname;
?>

<div class="componentheading">Edit Notes</div>
<p>Edit notes for <?php echo $name; ?></p>

<table>
<tr>
<td>
<textarea name="notes" class="inputbox" rows="8" cols="40"><?php echo $row->notes; ?></textarea>
</td>
</tr>
</table>
<input name="id" value="<?php echo $id; ?>" type="hidden" />
<input type="submit" class="button" value="Save" />
