Passing Parameters

E

Ed Richter

I'm trying to pass two parameters from one ASP page to the next by clicking on a link. I'm able to pass one parameter no problem, but am having trouble getting second to work. I believe the problem is in the format of the line. I'm entering as listed below:

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>?second_parm=<% = rsObj("second_parm") %>"><% = rsObj("first_parm") %></td>

If I just type, it works fine;

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>"><% = rsObj("first_parm") %></td>

As soon as I add second paramter, it stops working. What am I typing wrong??

Any ideas??
 
T

Thomas A. Rowe

<A
HREF="go_to_page.asp?first_parm=<%=rsObj("first_parm")%>&second_parm=<%=rsObj("second_parm")%>"><%=r
sObj("first_parm") %></a></td>

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


I'm trying to pass two parameters from one ASP page to the next by clicking on a link. I'm able to
pass one parameter no problem, but am having trouble getting second to work. I believe the problem
is in the format of the line. I'm entering as listed below:

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>?second_parm=<% = rsObj("second_parm")
%>"><% = rsObj("first_parm") %></td>

If I just type, it works fine;

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>"><% = rsObj("first_parm") %></td>

As soon as I add second paramter, it stops working. What am I typing wrong??

Any ideas??
 
M

MD Websunlimited

Hi Ed,

Without ASP it would look like this"

<a href="mypage.asp?firstame=Mike&lastname=Webs" >pass 2</a>

Try this:
<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>&second_parm=<% = rsObj("second_parm") %>"><% = rsObj("first_parm") %></a>


--
Mike -- FrontPage MVP '09 - '02
http://www.websunlimited.com
Featured in "Inside Microsoft FrontPage" by ElementK Journals


I'm trying to pass two parameters from one ASP page to the next by clicking on a link. I'm able to pass one parameter no problem, but am having trouble getting second to work. I believe the problem is in the format of the line. I'm entering as listed below:

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>?second_parm=<% = rsObj("second_parm") %>"><% = rsObj("first_parm") %></td>

If I just type, it works fine;

<A HREF="go_to_page.asp?first_parm=<% = rsObj("first_parm") %>"><% = rsObj("first_parm") %></td>

As soon as I add second paramter, it stops working. What am I typing wrong??

Any ideas??
 
Top