Wrox Programmer Forums
|
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
 
Old August 22nd, 2004, 09:43 AM
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?


 
Old August 22nd, 2004, 09:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
 
Old August 22nd, 2004, 10:07 AM
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old August 22nd, 2004, 10:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

<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
 
Old August 22nd, 2004, 10:35 AM
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THANKs.. that fixed it..

I never tried the =
I was trying the other combination.. Thanks for the help

 
Old August 23rd, 2004, 08:25 AM
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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??

 
Old August 23rd, 2004, 09:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Can you post the code how you try to open that in a frame?

_________________________
- Vijay G
Strive for Perfection
 
Old August 23rd, 2004, 12:12 PM
Registered User
 
Join Date: Aug 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old August 23rd, 2004, 01:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Input javascript variable into hyperlink column toddw607 ASP.NET 2.0 Basics 1 April 17th, 2008 10:12 AM
Passing variable to a public variable Hudson40 Access VBA 2 February 25th, 2005 06:23 AM
passing a variable from one form to another madhukp VB How-To 4 January 19th, 2005 12:45 AM
form variable passing with popups and other... jman11587 Beginning PHP 4 February 18th, 2004 10:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.