fetch records and display on page

fetch records and display on page

Hello,

I have created a form, where I made one entry. Then I created a report to show the data entered. All works perfectly.

But, then I tried to create a page, so I could design a customized report, but I am unable to retrieve the data from the database and display in on my page. Here is my code below, could someone help me with the syntax.

Thank you, Collin

<% firstname = BasicInformation_Information [ID ! = 0].First_Name;
lastname = BasicInformation_Information[ID ! = 0].Last_Name; %>

<table width="200" border="1" cellpadding="1" cellspacing="1">
    <tbody>
        <tr>
            <td>First Name</td>
            <td>$firstname</td>
        </tr>
        <tr>
            <td>Last Name</td>
            <td>$lastname</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>