POST from HTML published test not going through to email-creation form

This is a continuation of an email discussion I've been having with Randy David.


To clarify, we are not using a script to get the POST data results from the published test, but we do use something similar. We use an ASP.Net web form that receives the POST data and then looks for the necessary values to send an email with.


The whole goal of using this form is to be able to send 2 separate emails to different addresses each time a user completes the test (one email to the user, one to our Board of Ethics).


In regards to the specific Lectora variables… our submit form doesn’t look for specific variables when it first grabs the POST data. Instead, it grabs all variables from the POST and URL (query string) and then identifies specific variables (recipient, sender, subject) and uses them to send the email.


This is the block of code in our email submit form that looks for any name/value pairs within the form POST:


For Each s As String In Request.Form.AllKeys

theData.Add(s, Request.Form(s))

Next

For Each s As String In Request.QueryString.AllKeys

theData.Add(s, Request.QueryString(s))

Next


I have already tested this successfully by putting the recipient, sender and subject values into the URL and publishing the test as an executable file. I ran the test, filled out the user info at the end, clicked on "submit" to submit the results and immediately got an email from our email submit form that included all the variables from Lectora.


The heart of our problem is that we need to publish the test as HTML. When I enter the values into the URL in the same way but publish and run the test as HTML, the submit form is somehow not receiving the POST. No email is sent and there is no indication that the email submit form received the post. I'm hosting both the published HTML test and the email submit form on the same web server.



Thanks!


Mike Pritchard

Division of Technology

Discussions have been disabled for this post