<!--#include file="DB.asp" -->
<%
response.Buffer = True
'Make sure this page is not cached
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"
'Dimension variables
Dim intID
Set intID = Request.Form("ID_bank")
'----------------------
' Open connection to the database
Set objRS= server.CreateObject("ADODB.recordset")
objRS.open "tbl_emoney",objconn, ,adLockoptimistic ,adcmdtable
bolFound = false
'Try to find User Entry
Do Until objRS.EOF Or bolFound
if (StrComp(objRS.fields("ID_bank"),intID,vbTextCompare) = 0 )then
bolFound = True
Else
objRs.Movenext
End if
Loop
'Add Record to database
objRS("Namebank") = Request.Form("Namebank")
objRS("UrlBank") = Request.Form("UrlBank")
objRS("CodePay") = Request.Form("CodePay")
objRS("Account") = Request.Form("Account")
objRS("LogoBank") = Request.Form("LogoBank")
objRS("About") = Request.Form("About")
objRS.update
'Close
objRS.close
set objRS = nothing
objconn.close
set objconn = nothing
'Response.Redirect(
Response.Redirect("../admin/Manegment_bank.asp")
%>