retaining the form inputs on clicking the submit button
- by sushant
i have a form. the code is:
<html>
<body>
<form method="post" action="array.asp">
<input type="text" name="Req_id1">
Req_id:
<input type="text" name="Req_id">
<input type="submit" value="search" id=submit1 name=submit1>
<select id="selFiles" name="selFiles" class="Select" style="width: 500px" tabindex="130">
<%
Dim req_id,myArray(11)
req_id=Request.Form("Req_id")
myArray(0) = "FCC_CITI_LONDON\FCC_V.FM_Release_5.0"
myArray(1) = "FCC_CITIUSDDA\FC_UBS_V.UM_10.3.0.0.CitiUSDDA1.0"
myArray(2) = "FCC_KorAm\Flexcube_V.CK_Release_5.0"
myArray(3) = "FCC-CL\FCC-CL.1.1.1"
myArray(4) = "Mayaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(5) = "Juneaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(6) = "Julyaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(7) = "Augustaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(8) = "Septemberaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(9) = "Octoberaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(10) = "Novemberaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
myArray(11) = "Decemberaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
Dim myArrResult
myArrResult = Filter(myArray, req_id, True, vbTextCompare)
Dim item
For Each item In myArrResult
Response.Write("<option>" + item + "</option>")
Next
%>
</select>
</body>
</html>
in between the form there is an opption to search a string from the array. on clicking submit the result are shown in the drop-down box. but the problem is that i loose all the input entered in the form before. for ex:the first input box goes blank. how do i retain the previous inputs? any help is really appreciated.