[thelist] VARIABLE(s): asp/vbscript (referencing/pointers)

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Wed Jun 26 12:00:01 CDT 2002


QueryString items are string-type variants in ASP and even if their content
is the same as a name of a variable, they're still a string.  But, you could
try VBScript's Eval function or Execute Statement.

See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/vsfcteval.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht
ml/vsstmexecute.asp

Try this in page2.asp:

Const C_Err1 = "You suck and the form field is blank. Please reenter it."
Const C_Err2 = "You're ugly, please fix that."

Response.Write("C_Err2 = " & C_Err2 & "<br />")

Response.Write("Request(&quot;errMsg&quot;) = " & Request("errMsg") & "<br
/>")

Response.Flush

Response.Write("Eval(Request(&quot;errMsg&quot;) = " &
Eval(Request("errMsg")) & "<br />")

HTH,
Greg


The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.





More information about the thelist mailing list