Click to See Complete Forum and Search --> : ASP and passing header variables


jillmur
06-08-2005, 10:04 AM
I have a page with a form that receives custom header variables and gathers that info as follows.

strID = request.ServerVariables.Item("HTTP_EFSUSERID")
strName = request.ServerVariables.Item("HTTP_EFSFULLNAME")

The form action is sending the variables onto another ASP page which then emails the info to an email address. How do I send the header variables I gathered above along with the other form variables? I tried it this way and it's not working:

In the form: <input type="hidden" name="userID" value="<%request.ServerVariables.Item("HTTP_EFSUSERID")%>">

In the asp file that processes the email: strID = Request.form("userID")

How do I pass these variables from the headers from one page to the next? Thanks!

cusimar9
06-08-2005, 10:10 AM
You could set them as session variables couldn't you?

jillmur
06-08-2005, 03:22 PM
You could set them as session variables couldn't you?

That did it, thank you!!

cusimar9
06-09-2005, 05:32 AM
No probs ;)