Capture URL variable

I would like to capture the 'iid' variable being passed with the url link to come to my site and then use it as a hidden variable in my form on the page.

e.g. http://mysite.com/index.html?iid=v1 is the incoming URL

but I cannot use javascript.

How can I get the 'v1' value into my form?

Thanks!
kkbenjAsked:
Who is Participating?
 
b0lsc0ttConnect With a Mentor IT ManagerCommented:
kkbenj,

You can't do it just with html.  Either a server language (i.e. ASP, PHP, Perl) or javascript must be used.  Server language is best and easiest but it doesn't look like the page is generated by server code.  If you server supports a language and you want to make a change to the page and add some server script then let us know which language and we can provide an example.

HTML on its own can't do it.  Let me know if you have any questions or need more information.

b0lsc0tt
0
 
kkbenjAuthor Commented:
I was afraid of that.  Thanks for responding so quickly.
0
 
b0lsc0ttIT ManagerCommented:
Your welcome!  I'm glad that I could help.  Thank you for the grade, the points and the fun question.

bol
0
All Courses

From novice to tech pro — start learning today.