I need help ?

I need help ?

i want to create search interface? till now i have done this
 created stateless form containing username and search button

here is code(in registration form i have username, firstname,lastname,email,address)
if (Registration_Form[Username == input.Username].count()  >  0)
{
    
    x  =  Registration_Form  [Username == input.Username];
    
}
else if (Registration_Form[Username != input.Username].count()  >  0)
{
    alert("Invalid username");
}

if i enter username and click on search it should retrieve the information and display in page
here is html code (page)

htmlpage Search_Details_Page()
displayname = "Search Details Page"
content
<%{%>    <html>
<head>
    <title>Records Details</title>
    <link rel="stylesheet" type="text/css" href="westwind.css">
</head>
<body style="font: normal normal 10pt Verdana" topmargin="0" leftmargin="0">
<h2>
    <img border="0" src="../images/newwave.jpg" align="left" width="158" height="864"><br>
    <font color="#800000">Records Detail</font></h2>
<hr>
<form method="POST" action="AddCustomer.wp">

<table bgcolor="#EEEEEE" cellpadding="5" border="1" 
       style="border: solid 2px Darkblue;">
    <tr>
        <td valign="TOP" class="blockheader">
            <b>FirstName:</b></td>
        <td>
            <input type="text" name="Company" style="width: 300px"></td>
    </tr>
    <tr>
        <td valign="TOP" class="blockheader">
            <b>LastName:</b></td>
        <td>
            <input type="text" name="Careof" style="width: 300px"></td>
    </tr>
    <tr>
        <td valign="TOP" class="blockheader">
            <b>Address:</b></td>
        <td>
            <textarea name="Addres" style="width: 300px;height:80px"></textarea></td>
    </tr>
    <tr>
        <td valign="TOP" class="blockheader">
            <b>Email:</b></td>
        <td>
            <input type="text" name="phone" style="width: 300px"></td>
    </tr>
</table>
</form>
<hr>
</body><%}%>

need help