In the form tab give the name or the script .. right now you have given result.. I assume your page name is result.asp so change the form tag as follows.
<form action="result.asp" method="post" name="invoice" id="invoice">
Now in the SQL query replace 12345 with the value from textbox as follows
' -- Our SQL Statement
strSQL = "select * from tinvoice where inv_no =" & Request.form("invoice")
Now change the type of the button from "button" to "submit" as follows
<input name="Button" type="submit" class="button" align="right" onmouseover="this.classNam
Hope this should help you :)
Cheers
Sajith
Main Topics
Browse All Topics





by: YZlatPosted on 2004-09-13 at 08:44:33ID: 12045108
you should use form submit. Put <form> tag on the form and replace your Button with Submit button. Set the form's action to your page name.asp. For example if you mage is result.asp, have <form name="form1" method="post" action="result.asp">:
4/loose.dt d"> e>
e='buttono n'" onmouseout="this.className ='button'" value="Search">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html
<html>
<head>
<title>Search_Result</titl
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p> </p>
<table width="210" border="0" align="center" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<td>Search by Invoice Number </td>
</tr>
<tr>
<td><form action="result.asp" method="post" name="invoice" id="invoice">
<input name="invoice" type="text" class="title" id="invoice" value="123456" size="10" maxlength="10">
<input name="Button1" type="submit" class="button" align="right" onmouseover="this.classNam
</form></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>