But I need to dim 'name' first?
Huh? There is NEVER any variable name
used in *EITHER* page.
Sure, you can do
but for what purpose when that variable is NEVER USED?????
You seem to think there is some magic relationship between:
-- the name
of a variable
-- the contents
(value) of that variable
-- the name of the querystring element used in Request("name")
NOTHING COULD BE FURTHER FROM THE TRUTH!
Yes, the code you show in your post #10 should work.
But it would work EQUALLY WELL if you did this:
Response.Redirect "thank_you.asp?freakyfridaykruger =" & ContactUs_name
santaclaus = Request("freakyfridaykruger")
<h2>Thank you, <%=santaclaus%>, for your submission.</h2>
VARIABLE NAMES ARE OF YOUR OWN CHOICE. They do NOT need to be related to their contents in any way (though of course it's easier to understand the code if they are). They do *NOT* need to match from one ASP page to the next. They do *NOT* need to match in any way the key
in the key=value
pair of a querystring. Again, it's usually better if they do, but IT IS ALL UP TO YOU.
One more working example:
Response.Redirect "thank_you.asp?x =" & ContactUs_name
v = Request("x")
<h2>Thank you, <%=v%>, for your submission.</h2>