Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 October 19th, 2006, 04:30 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default Pass a parameter in a link

Hi Guys,

Can someone please help me with the syntax on how I can pass a parameter from a variable to a web page? I am passing blank with my code below.

Here's what I am trying to do. I need to pass the content of a field called rsMemControl("MemberID" to parm_id to a website. Everytime I would click the link it will go the the website but parm_id will be blank. Below is my code. Please help me.

<%

Dim strSQL


strSQL = "SELECT * FROM Member_Control " & _
      "WHERE SSN = " & Session("SSN") & ";"

Set rsMemControl = Server.CreateObject("ADODB.Recordset")
rsMemControl.Open strSQL, objConn


%>

<h1 style="text-align: justify">Disclaimer</h1>
<p class="MsoNormal" style="text-align: justify">Any questions about any potential changes in the current system of benefits in this survey do not constitute any kind of “vote” on benefits. In fact, until the Houston Firefighters' Relief and Retirement Fund is more than 100% funded, the Board is not in a position to pursue benefits that have an actuarial cost. Therefore, any questions in this survey about improvements to benefits will relate to possible activity in a future Texas Legislature, but not the Legislature that is upcoming in January of 2007.</p>

<p class="MsoNormal" style="text-align: center; text-indent: -.25in; margin-left: .75in">


<a href="http://www.ridgecrestsurveys.com/sur.php?usn=oq2346l&pwd=fa41a5ba72a7&parm_id="& rsMemControl("MemberID")>I Agree</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
<a target="_top" href="Browselistings.asp">I Do Not Agree</a></p>

<a href="benefits.asp">BACK</a>


Thanks







 
Old October 20th, 2006, 02:23 PM
Authorized User
 
Join Date: Oct 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ricespn
Default

I fix this line :

<a href="http://www.ridgecrestsurveys.com/sur.php?usn=oq2346l&pwd=fa41a5ba72a7&parm_id=<%=rs MemControl("MemberID")%>">I Agree</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;


=======================
Strange and crazy, but everything is possible





Similar Threads
Thread Thread Starter Forum Replies Last Post
pass parameter naeem_ul_hussan Classic ASP Basics 2 August 30th, 2007 11:18 AM
Pass link values as xsl:parameter to php5 then xsl pauljr8 XSLT 1 July 2nd, 2007 10:32 PM
How to pass parameter to sub-report . azeerum Access 1 January 3rd, 2005 04:26 PM





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