Hows it going? the Else statment doesn't work, any ideas? all other ElseIfs validate, and the last Elses has a Javascript call in it to submit the form, the JS don't initiate, it would if i put the page.asp url into the bowser and press enter, then the js script posts the form, but as a ssi or directly placed into the asp page it doesn't work? any ideas why?
Code:
<%
If gstrProfessionId = "4" Then
%>
<!--#include file="registrationContinued2.asp"-->
<%
ElseIf gstrProfessionId = "11" Then
%>
<!--#include file="registrationindustry2.asp"-->
<%
ElseIf gstrProfessionId = "1" Then
%>
<!--#include file="registrationnurse2.asp"-->
<%
ElseIf gstrProfessionId = "3" Then
%>
<!--#include file="registrationpharamist2.asp"-->
<%
Else
' also tried code below as an include like above without any luck
%>
<html><head>
<script type="text/javascript">
function setFocus(){
document.registrationFrm.submit();
}
window.onload = setFocus;
</script>
</head><body>
<form action="validate.asp" method="POST" name="registrationFrm">
<%
For Each thing In Request.Form
Response.Write "<input type=""hidden"" name=""" & thing & """ value=""" & Request.Form(thing) & """>" & vbCrLf
Next
%>
<p align="center"> <p align="center">
Your information has been validated, please click the button below to begin the survey.<p align="center">
<input type="submit" value="Submit" />
</form>
</body>
</html>
<%
End If
%>