<%
Public
Function
VeriAl(strGelen)
Set
objVeriAl = Server.CreateObject(
"Microsoft.XMLHTTP"
)
objVeriAl.Open
"GET"
, strGelen, FALSE
objVeriAl.sEnd
VeriAl = objVeriAl.Responsetext
SET objVeriAl =
Nothing
End
Function
strVeri = VeriAL(strAdres)
iDolar=InStr(strVeri,
"USD"
)
strDolarAlis=Mid(strVeri,iDolar+39,10)
strDolarSatis=Mid(strVeri,iDolar+52,10)
iEuro=InStr(strVeri,
"EUR"
)
strEuroAlis=Mid(strVeri,iEuro+39,11)
strEuroSatis=Mid(strVeri,iEuro+52,11)
%>
Döviz kurlarının görünmesini istediğiniz yere aşağıdaki kodları yazın.
<%=strdolarsatis%>
<%=streurosatis%>