how to append URL parameter to redirect page ASP
Hi,
I'm using ASP VB. I have an insert form, which is working fine. On submission, it redirects to page SendEmail.asp. However, I want to get rid of the existing URL parameters, and create some other specific URL parameters to pass on instead. But it's not working. I edited the default DW code, but I'm not entirely sure what I'm doing! The code is like this:
' append the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "SendEmail.asp"
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & "SchoolEmailAddress=" & (rsResults.Fields.Item("Email").Value) & "User=" & Request.QueryString("User")
End If
End If
Response.Redirect(MM_editRedirectUrl)
and if I run the page, I get an error like this:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
can anyone help please?
thanks