Using your suggestion the string
http://www.streetmap.co.uk
Main Topics
Browse All TopicsHi Experts
I need to link from an html page to a website passing a Value sent from a previous ASP page using Request.Querystring.
The value is passed ok to my html but using this code:
<a href="http://www.streetmap
does not pickup the value of Postcode from the existing page. Is there a problem with this syntax ?
Thanks
RangerLad
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Using your suggestion the string
http://www.streetmap.co.uk
the url of the page I am linking from is
http://www.website.com/adm
so the value is there, the problem seems to be with the syntax as it is returning the string rather than the value of Postcode
Try
<a href="http://www.streetmap
This creates the link http://www.streetmap.co.uk
<a href="http://www.streetmap
Hi,
the correct answer is
<a href="http://www.streetmap
--It works perfectly for me.
Ex:
It gives
code=10
The previous one gives code='10'
regards
pradeep
Was this in a html page ? I can only get it to run on an ASP page. Unfortunately, this must be on html as the resulting code (after some fixed text is replaced by an asp script) is formatted into the body of an email which is where I need the link to show.
I will add another 500pts to a linked question if anybody can come up with a suggestion of ow this can be done
Thanks
RangerLad
Yes, Request.Querystring must be run in an ASP page. In particular, grabbing values from the URL can be done in two ways. The most reliable and simple way is through server-side languages such as ASP or PHP. The other way is with client-side scripting.
Now, how does your ASP script parse the text of your email? If the text is retrieved from another page (I am not certain how to do this in ASP, but it would be roughly equivalent to PHP file_get_contents()), then it should pose no problem if the page is in ASP as it will be processed by the server and the string you will grab will have the correct link in it.
If the HTML page is stored in a string within the ASP parsing page, just concatenate the value of Request.Querystring to your HTML link. I am weak in ASP, but I will use pseudocode to demonstrate what I mean:
<%
' Declare a string variable
' Now the string is set
myStr = "<html> ... <a href='...?code=" & Request.Querystring("Postc
' Somehow send the string in a HTML email
%>
I do not see any way of doing this client-side if it is going to be an email as scripts cannot run in emails anyways.
Apart from the general problem you are having, I am wondering if your URL is supposed to have two ? in it; usually there is only one.
Ted
Business Accounts
Answer for Membership
by: pradeepsudharsanPosted on 2006-06-26 at 07:14:28ID: 16984272
<a href="http://www.streetmap .co.uk/str eetmap.dll ?postcode2 map?code=' <%= Request.Querystring(Postco de) %>' " target='_blank' class='rev'>Click here</a> for Direction Map</font></p>