well, basically,when i click the submit button in the form..it will go to another page..in IE,the page loads up,but in mozilla,its not happening..
'------DOUBLE CHECKING, CHECK IF USER HAS ALREADY SELECTED YES OR NO BEFORE--------------
Dim objRstMatchReport
varOptCompleted = Request.Form("optCompleted")
call associateRecordset(objConn, objRstMatchReport)
objRstMatchReport.Open("SELECT * FROM tblrMatchReport WHERE MatchNo=" & varMatchNo & " AND TeamNo=" & varTeamNo)
If NOT objRstMatchReport.EOF then
Response.Redirect("verify_QuantitativeReport_Error.asp?LeagueNo=" & varLeagueNo)
End if
call closeRecordset(objRstMatchReport)
call closeDatabaseConnection(objConn)
Dim strFormAction
Select Case varOptCompleted
Case 1
strFormAction = "manageMatchReport.asp?leagueNo=" & varLeagueNo
Case 2
strFormAction = "manageMatchException.asp?leagueNo=" & varLeagueNo
End Select
// this is the part that is not working..i am not sure whereis the problem..
Response.Write("<script language=""Javascript"" for=""window"" event=""onLoad"">" & vbcrlf)
Response.Write("document.frmMatchReport.action = """ & strFormAction & """;" & vbcrlf)
Response.Write("document.frmMatchReport.submit();" & vbcrlf)
Response.Write("</script>")
//this is the form..
<form method="post" name="frmMatchReport" id="frmMatchReport">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td height="20"><input type="hidden" id="txtMatchNo" name="txtMatchNo" value="<%=varMatchNo%>"</td>
</tr>
<tr>
<td><font class="bodytext"><b>PLEASE CHOOSE:</b></font></td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td><font class="bodytext">Did the match take place with a "Final result" ie first half completed on <u><%=Session("MatchDate")%></u></font></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td><input type="radio" name="optCompleted" id="optCompleted" checked value="1"> <font class="bodytext">YES</font></td>
</tr>
<tr>
<td><input type="radio" name="optCompleted" id="optCompleted" value="2"> <font class="bodytext">NO</font></td>
</tr>
<tr>
<td><input type="submit" value="continue" name="yes" class="button"></td>
</tr>
</table>
</form>



Reply With Quote

Bookmarks