<?php
$user =& JFactory::getUser();
$db= JFactory::getDBO();
?>
<input type='hidden' name='cf_user_id' value='<?php echo $user->id; ?>' />
<?php
  $query="select * from jos_chronoforms_freetrialEdit where USERNAME='".$user->name."'";
  $db->setQuery($query);
  $data=$db->loadObject();
  print_r($data);
?>
<input type="hidden" size="10" name="firstname" id="firstname" value="<?php echo $data->text_0; ?>"/>
<input type="hidden" size="10" name="address" id="address" value="<?php echo $data->text_1; ?>"/>
<input type="hidden" size="20" name="city" id="city" value="<?php echo $data->text_9; ?>"/>
<input type="hidden" size="12" name="postalcode" id="postalcode" value="<?php echo $data->text_5; ?>"/>
<input type="hidden" size="30" name="email" id="email" value="<?php echo $data->text_4; ?>"/>
<input type="hidden" size="30" name="program" id="program" value="none"/>