We have come up with Flash/ASP code that allows us to make a selection from a drop down menu in Flash, display the selection in a text box in Flash and when a button is pushed on the Flash page, it sends the data to ASP, writes it into a variable which we can query for and then displays the results in our ASP page. Now, instead of displaying the results within ASP, we want to send the results back to Flash to display. Here is my ASP code:
Do I have my results formatted correctly to send back to Flash? (We are using Flash Version 8)
As always, any help is most certainly appreciated!
Thanks,
GC
Code:
<%
If Request.Form("sCoinChosen")<>"" Then
'Response.Write "I am getting here!!!"
Dim coinType
coinType=Request.Form("sCoinChosen")
coinType=cStr(coinType)
'--------------------------------------------------------------------
'create recordset object
Dim sqlCoinType
Dim objRSCoinType
Set objRSCoinType = Server.CreateObject("ADODB.Recordset")
sqlCoinType = "SELECT * FROM coins WHERE coin_name = '" & coinType & "';"
'open the recordset
objRSCoinType.Open sqlCoinType, objConn, 2, 3
objRSCoinType.MoveFirst
Response.Write "&sCoinChosen=" & objRSCoinType("coin_desc") & ""
objRSCoinType.Close
Set objRSCoinType = Nothing
'--------------------------------------------------------------
End If
%>
As always, any help is most certainly appreciated!
Thanks,
GC