Get URL variable on .asp page with ASP or JS

C

Charles

I need to retreive a URL variable on a .asp page using either ASP or JS and
then put in into the URL of an img tag.



Example:

- The page we are looking at has URL
"https://aaa.bbb.net/ccc.asp?var1=12345&var2=True&var3=hello"

- I need to use JS or ASP to build a tag "<IMG border=10 hspace=10 vspace=10
width=1 height=1
src="https://ddd.eee.com/fff.asp?vara=fixed&varb=fixed&varc=fixed&vard=12345&vare=fixed">"

- Basically, the value of var1 from the URL should be used as the value from
vard in the img tag



Your help is appreciated.

Charles
 
D

Dave Anderson

Charles said:
I need to retreive a URL variable on a .asp page using either ASP or
JS and then put in into the URL of an img tag.

Asked and answered in microsoft.public.scripting.jscript.
http://www.aspfaq.com/etiquette.asp?id=5003


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top