Forums
This topic is locked
Passing variable from a clickable image map
Posted 10 Oct 2002 17:32:21
1
has voted
10 Oct 2002 17:32:21 Brad Harris posted:
<font face='Verdana'>Need direction from the ASP gods!! I have an image map (state map). I would like the user to be able to click the county in question. That block of information gets passed to another page that contains a form. The form field 'county' is now automatically populated from their choice from the previous screen. They then fill in additional information, and then click a standard "submit" button. All information, including the "county" is dealt with accordinally.
I am not sure where to begin. Do I have my image map have a '?county=whatever' attached to the link. Do I use a form? A mix of both?? Just not quite sure.
Any help on this would so very much appreciated!!
Thanks UDzone!
</font id='Verdana'>
Replies
Replied 11 Oct 2002 09:31:21
11 Oct 2002 09:31:21 Vince Baker replied:
You are going the right way. On each image map add the ?Country=What_Country_Name to the end of the link.
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 11 Oct 2002 15:29:23
11 Oct 2002 15:29:23 Brad Harris replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You are going the right way. On each image map add the ?Country=What_Country_Name to the end of the link.
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks Vince. I saw that I was passing that value over to the next page. As I am rather new to ASP, I am not quite sure how to display that value on the next page. To put a finer point to it, I want that value to populate a blank text form field, that will be passed along with all the other information. What should I be looking at to accomplish this task, besides another year in college.
Thanks All!
You are going the right way. On each image map add the ?Country=What_Country_Name to the end of the link.
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks Vince. I saw that I was passing that value over to the next page. As I am rather new to ASP, I am not quite sure how to display that value on the next page. To put a finer point to it, I want that value to populate a blank text form field, that will be passed along with all the other information. What should I be looking at to accomplish this task, besides another year in college.
Thanks All!
Replied 13 Oct 2002 13:59:20
13 Oct 2002 13:59:20 Tabe Ydo replied:
passing it to the next page -> nextpage.asp?myVar=SomeCountry
on the next page -> < % = request.queryString("myVar"%>
the request.querystring will be replaced by the value you entered, in this case SomeCountry
good luck!
on the next page -> < % = request.queryString("myVar"%>
the request.querystring will be replaced by the value you entered, in this case SomeCountry
good luck!
Replied 14 Oct 2002 16:51:17
14 Oct 2002 16:51:17 Brad Harris replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
passing it to the next page -> nextpage.asp?myVar=SomeCountry
on the next page -> < % = request.queryString("myVar"%>
the request.querystring will be replaced by the value you entered, in this case SomeCountry
good luck!
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Gracias All .. worked PERFECTLY! Let me know if anybody needs help with their flash actionscripting <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
-bh
passing it to the next page -> nextpage.asp?myVar=SomeCountry
on the next page -> < % = request.queryString("myVar"%>
the request.querystring will be replaced by the value you entered, in this case SomeCountry
good luck!
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Gracias All .. worked PERFECTLY! Let me know if anybody needs help with their flash actionscripting <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
-bh