Fetch data in html view table

Fetch data in html view table

If I have a form called Details with three single fields (Name, Surname, Fathername) and in an html view I have a table

<table  style="width: 90%" border="1">
  <tr>
     <td>Name:</td>
   <td></td>
     <td>Surname:</td>
   <td></td>
     <td>Name of Father:</td>
     <td></td>
  </tr>
</table>








how can I fill the tds with the Name, Surname and Fathername from the form (report)?

I mean
<td>Name:</td>
   <td><%what I have to write here?%></td>
   <td>Surname:</td>
   <td><%what I have to write here?%></td>
   <td>Name of Father:</td>
   <td><%what I have to write here?%></td>






UPDATE

I tried the following but it returns me Error 'NULL'

<%for each r in Details
 {
  ModuleName = r.Name;
  ModuleSurname = r.Surname;
  ModuleFathername = r.Fathername;
   %>
<td>Name:</td>
   <td><%=ModuleName%></td>
   <td>Surname:</td>
   <td><%=ModuleSurname%></td>
   <td>Name of Father:</td>
   <td><%=ModuleFathername%></td>