Folks:
i’ve carefully followed the great database integration tutorial (http://www.kirupa.com/developer/actionscript/forms_database.htm). Everything works fine for textfields that are covered in the tutorial but I can’t get comboboxes or radio button values to write to the asp page. I’m assuming that if I can’t write to the asp page, the values also won’t be passed to the Access database.
Here’s what I have on my submit button:
on (press) {
formData = new LoadVars();
formData.username = username;
formData.useremail = useremail;
formData.usercomment = usercomment;
formData.usertype = usertype.getValue();
formData.commenttype = commenttype.getValue();
formData.commentscope = commentscope.getValue();
formData.operatingsystem = operatingsystem.getValue();
getURL(“http://example.com/form.asp”, 0, “POST”);
}
The form.asp page looks like this:
<%@language = “VBScript” %>
<%
strName = Request.Form(“username”)
strEmail = Request.Form(“useremail”)
strComment = Request.Form(“usercomment”)
strUserType = Request.Form(“usertype”)
strCommentType = Request.Form(“commenttype”)
strCommentScope = Request.Form(“commentscope”)
strOperatingSystem = Request.Form(“operatingsystem”)
Response.Write(strName) & “<br>”
Response.Write(strEmail) & “<br>”
Response.Write(strComment) & “<br>”
Response.Write(strUserType) & “<br>”
Response.Write(strCommentType) & “<br>”
Response.Write(strCommentScope) & “<br>”
Response.Write(strOperatingSystem) & “<br>”
%>
Using this, only the text field data (username, useremail, usercomment) shows up on the form.asp page. Nothing shows up for any of the comboboxes (usertype, commenttype, commentscope) or the radio buttons (operatingsystem).
If I trace the formData for each of these elements, they trace just fine.
Any help would really be appreciated.