I am trying to use session vars to pass the info from an input form ( dumping into SQL DB ) to the resulting 'Thank You' page.
I have used this as an example of getting input vars from my Sign-up page:
LastName=request.Form("LastName")
I add it with the
SQLStmt syntax and dump it into the Db...No Problem
-----Problem Starts------
<% Session("LastName")="VarLastName" %>
It throws this error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'Session'
...Line 497
----Problem-------------
I then use a Response.Redirect "Thank_You.ASP"
and I want to pull the info thru to personalize the page
I've tried this at the top, middle, bottom of the page and can't get it to work. This error occurs on page load and stops all activity. I can't get the SUBMIT to work,
Any help appreciated.
Thanks,
Brad
... hmmm not sure.
never happen to me b4,
looks like u may have a session timeout
how often does it happen?
u don't have to user session to get the form post even after u insert into dB, u can still use request.from (that if ur insert script and thankyou page in one asp file)
type put these in ur code, to set the timeout to 60min
<% sessionTimeout = 60 %>
hope it helps
cheers