e-mail results from a survey or form in Lectora

Hello everyone,


I found the script in the user guide, I will post below. How would you implement this script? Submit to cgi and target example.asp... Or is this external html that will just pull all the variables?


Thanks,



<%@ Language=VBScript %>


<%


Response.Buffer = True


Dim objXMLHTTP, xml, command, aicc_loc, version, session_id, aicc_data, postbody


'get passed params depending on method sent'


if(Request.Querystring("aicc_loc") <> "") then


aicc_loc=Request.Querystring("aicc_loc")


command=Request.Querystring("command")


version=Request.Querystring("version")


session_id=Request.Querystring("session_id")


aicc_data=Request.Querystring("aicc_data")


else


aicc_loc=Request.form("aicc_loc")


command=Request.form("command")


version=Request.form("version")


session_id=Request.form("session_id")


aicc_data=Request.form("aicc_data")


end if


' Build the post body string'


postbody = "command=" + Server.URLEncode(command) + "undefined">' Or, for version 3.0 of XMLHTTP, use:'


' Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")'


' Opens the connection to the remote server.'


xml.Open "POST", aicc_loc, False


xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"


'Actually Sends the request and returns the data:'


xml.Send postbody


'Send back the response'


Response.Write xml.responseText


Set xml = Nothing




 



 



 

Discussions have been disabled for this post