 |
| ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

August 22nd, 2004, 09:43 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Passing a form variable to a Hyperlink
I am wondering how to pass a form variable on to a hyperlink
I already made a variable using vbscript
fname = Reqeust.Querystring("FNAME")
But Now I am trying to find the right syntax to insert fname into a hyperlink
Can someone please help?
|
|

August 22nd, 2004, 09:54 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Are you trying to Pass this FNAME as a querystring to a URL in hyperlink? Or is that you are looking to use this as part of hyper link? Can you explain how you want the hyperlink to look like?
_________________________
- Vijay G
Strive for Perfection
|
|

August 22nd, 2004, 10:07 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am trying to make it look like
http://Localhost/Documents/listview.ssml?nonlocal=off&okStatus=0&q=(:1-12)[source,thumbnail,summary,create,capture_date-,subject,tags,fstring1]((fstring1<FNAME VALUE>))
Thanks for the help
|
|

August 22nd, 2004, 10:19 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
<a href = "http://Localhost/Documents/listview.ssml?nonlocal=off&okStatus=0&q=(:1-12)[source,thumbnail,summary,create,capture_date-,subject,tags,fstring1]((fstring1<<%=FNAME VALUE%>>))">
This should help.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|

August 22nd, 2004, 10:35 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
THANKs.. that fixed it..
I never tried the =
I was trying the other combination.. Thanks for the help
|
|

August 23rd, 2004, 08:25 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
That worked great.
Is there a reson why it would not work in a frame but works if you load the page up directly?
When I run the page thru a frame it does not pass the information to the hyperlink. however when I load the page up outside a frame it works great. Ideas??
|
|

August 23rd, 2004, 09:09 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Can you post the code how you try to open that in a frame?
_________________________
- Vijay G
Strive for Perfection
|
|

August 23rd, 2004, 12:12 PM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I got it working.. when I was submitting the form to itself and then making the Hyperlink open the target into a different frame. It was not working.. Untill I made the frameset Also ASP. Not sure if that is what fixed it but It is working currently..
And it is working real we.. I appreciate all the help
|
|

August 23rd, 2004, 01:10 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Yes, that should have fixed it, coz, without having it as ASP, you won't be able to process the REQUEST.QUERYSTRING, (if any used) within HTML.
_________________________
- Vijay G
Strive for Perfection
|
|
 |