nicky
07-09-2010, 03:19 PM
I have a dynamic URL that I need to retrieve the variable from and insert it into a hidden form field using VBScript.
Let's pretend the URL is www.mydomain.com/form.php?location=anytown
I need to retrieve the variable from location
My input is:
<input type="hidden" name="input1" value=""/>
I tried:
<input type="hidden" name="input1" value="<% Request.QueryString("location") %>"/>
... However, it didn't work, and I believe including the double quotations around location set it off, yet it won't work with single quotes or without any.
Any solutions? I appreciate all help.
Let's pretend the URL is www.mydomain.com/form.php?location=anytown
I need to retrieve the variable from location
My input is:
<input type="hidden" name="input1" value=""/>
I tried:
<input type="hidden" name="input1" value="<% Request.QueryString("location") %>"/>
... However, it didn't work, and I believe including the double quotations around location set it off, yet it won't work with single quotes or without any.
Any solutions? I appreciate all help.