Multiple stock quotes

Someone asked us was there any way of entering multiple ticker symbols in our stock chart ./ quote scripts . Well here is the updated example .

Note enter  the ticker symbols with no spaces like this MSFT,SUN,CNET

Code : 

<%
If Request.Form("ticker") = "" Then
%>
Seperate ticker symbols with a comma , (no spaces between ticker symbols either)
<form action="<%= Request.ServerVariables("SCRIPT_NAME") %>" method="post">
Enter your ticker symbol :<input type="text" name="ticker" size="25"><br>
<input type="submit" value="show chart">
</form>
<%
else
arrTicker = split(Request.Form("ticker"),",")
for i = LBound(arrTicker) To UBound(arrTicker)
%>
<br>
<img border="0" src="http://ichart.yahoo.com/t?s=<%= arrTicker(i)%>">
<%
Next
End If
%>

 

 

Sponsors

Shop at Amazon.com